diff options
author | Thomas Graf <tgr@deb.localdomain> | 2007-12-19 21:03:44 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@deb.localdomain> | 2007-12-19 21:03:44 (GMT) |
commit | 3ad4665be2f192291238cbe78118a57ec42436c6 (patch) | |
tree | e2a4ef0b15729943d3aafa0bed702c7a98ca2f61 /include/netlink | |
parent | 464988628802b76d5b3e50af99158413ac28bd18 (diff) | |
download | libnl-3ad4665be2f192291238cbe78118a57ec42436c6.zip libnl-3ad4665be2f192291238cbe78118a57ec42436c6.tar.gz libnl-3ad4665be2f192291238cbe78118a57ec42436c6.tar.bz2 |
Support link operstate and linkmode
Diffstat (limited to 'include/netlink')
-rw-r--r-- | include/netlink/addr.h | 1 | ||||
-rw-r--r-- | include/netlink/route/link.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/netlink/addr.h b/include/netlink/addr.h index df5c868..25fce7e 100644 --- a/include/netlink/addr.h +++ b/include/netlink/addr.h @@ -36,6 +36,7 @@ extern int nl_addr_shared(struct nl_addr *); extern int nl_addr_cmp(struct nl_addr *, struct nl_addr *); extern int nl_addr_cmp_prefix(struct nl_addr *, struct nl_addr *); +extern int nl_addr_iszero(struct nl_addr *); extern int nl_addr_valid(char *, int); extern int nl_addr_guess_family(struct nl_addr *); extern int nl_addr_fill_sockaddr(struct nl_addr *, diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h index 8bcae24..78f2b0b 100644 --- a/include/netlink/route/link.h +++ b/include/netlink/route/link.h @@ -91,6 +91,12 @@ extern int rtnl_link_str2stat(const char *); extern char * rtnl_link_flags2str(int, char *, size_t); extern int rtnl_link_str2flags(const char *); +extern char * rtnl_link_operstate2str(int, char *, size_t); +extern int rtnl_link_str2operstate(const char *); + +extern char * rtnl_link_mode2str(int, char *, size_t); +extern int rtnl_link_str2mode(const char *); + /* Access Functions */ extern void rtnl_link_set_qdisc(struct rtnl_link *, const char *); @@ -142,6 +148,14 @@ extern int rtnl_link_get_link(struct rtnl_link *); extern void rtnl_link_set_master(struct rtnl_link *, int); extern int rtnl_link_get_master(struct rtnl_link *); +extern void rtnl_link_set_operstate(struct rtnl_link *, + uint8_t); +extern uint8_t rtnl_link_get_operstate(struct rtnl_link *); + +extern void rtnl_link_set_linkmode(struct rtnl_link *, + uint8_t); +extern uint8_t rtnl_link_get_linkmode(struct rtnl_link *); + extern uint64_t rtnl_link_get_stat(struct rtnl_link *, int); #ifdef __cplusplus |