diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-07-21 15:47:00 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-07-21 15:47:00 (GMT) |
commit | 8219cc79f827459192022c026f9d82d23ff1ab3b (patch) | |
tree | 047930516d4714bb38e451a58a68cc7a64a3d77a /include | |
parent | 16d38a49d167983cc21067f17c84b4f07121a00d (diff) | |
download | libnl-8219cc79f827459192022c026f9d82d23ff1ab3b.zip libnl-8219cc79f827459192022c026f9d82d23ff1ab3b.tar.gz libnl-8219cc79f827459192022c026f9d82d23ff1ab3b.tar.bz2 |
VLAN: rtnl_link_is_vlan() function and API documentation
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/route/link/vlan.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/netlink/route/link/vlan.h b/include/netlink/route/link/vlan.h index a3ad76d..42768b6 100644 --- a/include/netlink/route/link/vlan.h +++ b/include/netlink/route/link/vlan.h @@ -27,17 +27,19 @@ struct vlan_map #define VLAN_PRIO_MAX 7 +extern int rtnl_link_is_vlan(struct rtnl_link *); + extern char * rtnl_link_vlan_flags2str(int, char *, size_t); extern int rtnl_link_vlan_str2flags(const char *); -extern int rtnl_link_vlan_set_id(struct rtnl_link *, int); +extern int rtnl_link_vlan_set_id(struct rtnl_link *, uint16_t); extern int rtnl_link_vlan_get_id(struct rtnl_link *); extern int rtnl_link_vlan_set_flags(struct rtnl_link *, unsigned int); extern int rtnl_link_vlan_unset_flags(struct rtnl_link *, unsigned int); -extern unsigned int rtnl_link_vlan_get_flags(struct rtnl_link *); +extern int rtnl_link_vlan_get_flags(struct rtnl_link *); extern int rtnl_link_vlan_set_ingress_map(struct rtnl_link *, int, uint32_t); |