diff options
author | Thomas Graf <tgraf@redhat.com> | 2012-10-09 19:55:31 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2012-10-09 19:55:31 (GMT) |
commit | a35287a689f91734e3bb8687a24e7a8354132290 (patch) | |
tree | f24decac0b39a2314ebffe97ca0849c4096622f1 /include | |
parent | 36139cf1f044b2631f425d4ceb7333bc9a3facd3 (diff) | |
download | libnl-a35287a689f91734e3bb8687a24e7a8354132290.zip libnl-a35287a689f91734e3bb8687a24e7a8354132290.tar.gz libnl-a35287a689f91734e3bb8687a24e7a8354132290.tar.bz2 |
link: Support link grouping
New functions:
rtnl_link_set_group(link, group)
rtnl_link_get_group(link)
The group identifier is printed in the brief section as "group N"
Signed-off-by: Thomas Graf <tgraf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-types.h | 1 | ||||
-rw-r--r-- | include/netlink/route/link.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink-types.h b/include/netlink-types.h index 345486f..10ef218 100644 --- a/include/netlink-types.h +++ b/include/netlink-types.h @@ -176,6 +176,7 @@ struct rtnl_link uint32_t l_promiscuity; uint32_t l_num_tx_queues; uint32_t l_num_rx_queues; + uint32_t l_group; }; struct rtnl_ncacheinfo diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h index 518bab5..8268b13 100644 --- a/include/netlink/route/link.h +++ b/include/netlink/route/link.h @@ -148,6 +148,9 @@ extern char * rtnl_link_get_qdisc(struct rtnl_link *); extern void rtnl_link_set_name(struct rtnl_link *, const char *); extern char * rtnl_link_get_name(struct rtnl_link *); +extern void rtnl_link_set_group(struct rtnl_link *, uint32_t); +extern uint32_t rtnl_link_get_group(struct rtnl_link *); + extern void rtnl_link_set_flags(struct rtnl_link *, unsigned int); extern void rtnl_link_unset_flags(struct rtnl_link *, unsigned int); extern unsigned int rtnl_link_get_flags(struct rtnl_link *); |