diff options
author | Susant Sahani <susant@redhat.com> | 2014-05-07 10:35:53 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-05-12 12:23:32 (GMT) |
commit | 430eb4004ab7f93fd840e9836d4bc9220d3c406d (patch) | |
tree | 338d908eed42aa5e29a83928f30f6fb54053f644 /include | |
parent | c79754297adcd933b275aeabbb94d9bd34f3bb33 (diff) | |
download | libnl-430eb4004ab7f93fd840e9836d4bc9220d3c406d.zip libnl-430eb4004ab7f93fd840e9836d4bc9220d3c406d.tar.gz libnl-430eb4004ab7f93fd840e9836d4bc9220d3c406d.tar.bz2 |
vlan: add support for IFLA_VLAN_PROTOCOL
This patch adds support for IFLA_VLAN_PROTOCOL
Signed-off-by: Susant Sahani <susant@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
[thaller@redhat.com: minor fixes (whitespace, documentation, and a typo)]
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_link.h | 1 | ||||
-rw-r--r-- | include/netlink/route/link/vlan.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 4a7cace..8b84939 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -244,6 +244,7 @@ enum { IFLA_VLAN_FLAGS, IFLA_VLAN_EGRESS_QOS, IFLA_VLAN_INGRESS_QOS, + IFLA_VLAN_PROTOCOL, __IFLA_VLAN_MAX, }; diff --git a/include/netlink/route/link/vlan.h b/include/netlink/route/link/vlan.h index f274163..4ec751e 100644 --- a/include/netlink/route/link/vlan.h +++ b/include/netlink/route/link/vlan.h @@ -34,6 +34,9 @@ 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_protocol(struct rtnl_link *link, uint16_t); +extern int rtnl_link_vlan_get_protocol(struct rtnl_link *link); + extern int rtnl_link_vlan_set_id(struct rtnl_link *, uint16_t); extern int rtnl_link_vlan_get_id(struct rtnl_link *); |