summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-10-21 16:17:28 (GMT)
committerThomas Haller <thaller@redhat.com>2015-10-21 17:04:48 (GMT)
commitcef00e4f7be29b1eb9431477aab10ea92980becc (patch)
tree3fce9a2d2185d6d807d0589d7370f0c1c387d69f
parent0aca70083e51d97d0102c73852d31625f75c942b (diff)
downloadlibnl-cef00e4f7be29b1eb9431477aab10ea92980becc.zip
libnl-cef00e4f7be29b1eb9431477aab10ea92980becc.tar.gz
libnl-cef00e4f7be29b1eb9431477aab10ea92980becc.tar.bz2
rtnl/link: indicate capability NL_CAPABILITY_RTNL_LINK_VLAN_PROTOCOL_SERIALZE
Related: 0aca70083e51d97d0102c73852d31625f75c942b
-rw-r--r--include/netlink/utils.h6
-rw-r--r--lib/utils.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/netlink/utils.h b/include/netlink/utils.h
index 31e27f7..b073e88 100644
--- a/include/netlink/utils.h
+++ b/include/netlink/utils.h
@@ -165,6 +165,12 @@ enum {
NL_CAPABILITY_VERSION_3_2_27 = 11,
#define NL_CAPABILITY_VERSION_3_2_27 NL_CAPABILITY_VERSION_3_2_27
+ /**
+ * Properly serialize vlan protocol IFLA_VLAN_PROTOCOL.
+ */
+ NL_CAPABILITY_RTNL_LINK_VLAN_PROTOCOL_SERIALZE = 12,
+#define NL_CAPABILITY_RTNL_LINK_VLAN_PROTOCOL_SERIALZE NL_CAPABILITY_RTNL_LINK_VLAN_PROTOCOL_SERIALZE
+
__NL_CAPABILITY_MAX,
NL_CAPABILITY_MAX = (__NL_CAPABILITY_MAX - 1),
#define NL_CAPABILITY_MAX NL_CAPABILITY_MAX
diff --git a/lib/utils.c b/lib/utils.c
index 08db79e..21b4205 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -1155,7 +1155,7 @@ int nl_has_capability (int capability)
NL_CAPABILITY_LINK_BUILD_CHANGE_REQUEST_SET_CHANGE,
NL_CAPABILITY_RTNL_NEIGH_GET_FILTER_AF_UNSPEC_FIX,
NL_CAPABILITY_VERSION_3_2_27,
- 0,
+ NL_CAPABILITY_RTNL_LINK_VLAN_PROTOCOL_SERIALZE,
0,
0,
0,