dect
/
libnl
Archived
13
0
Fork 0

Expose <netlink/route/link/inet.h>

This commit is contained in:
Thomas Graf 2011-04-20 11:53:04 +02:00
parent 36b04747c7
commit 4c6dd3a8bd
3 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ nobase_include_HEADERS = \
netlink/route/cls/u32.h \
netlink/route/link/api.h \
netlink/route/link/info-api.h \
netlink/route/link/inet.h \
netlink/route/link/vlan.h \
netlink/route/qdisc/cbq.h \
netlink/route/qdisc/dsmark.h \

View File

@ -19,7 +19,7 @@ extern "C" {
#endif
extern const char * rtnl_link_inet_devconf2str(int, char *, size_t);
extern unsigned int rtnl_link_inet_str2devconf(const char *);
extern int rtnl_link_inet_str2devconf(const char *);
extern int rtnl_link_inet_get_conf(struct rtnl_link *,
const unsigned int, uint32_t *);

View File

@ -166,7 +166,7 @@ const char *rtnl_link_inet_devconf2str(int type, char *buf, size_t len)
ARRAY_SIZE(inet_devconf));
}
unsigned int rtnl_link_inet_str2devconf(const char *name)
int rtnl_link_inet_str2devconf(const char *name)
{
return __str2type(name, inet_devconf, ARRAY_SIZE(inet_devconf));
}