diff options
author | Thomas Haller <thaller@redhat.com> | 2016-11-05 16:00:53 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-11-05 16:27:13 (GMT) |
commit | 755b8cc0086bda261f61a005749b8f4cd5437778 (patch) | |
tree | 0669f7318003a1acd7d6dbd9c40c3a2e306e3f0f /include/netlink | |
parent | e21d71baad23b75c8cad6e486198b79a6bc6386e (diff) | |
download | libnl-755b8cc0086bda261f61a005749b8f4cd5437778.zip libnl-755b8cc0086bda261f61a005749b8f4cd5437778.tar.gz libnl-755b8cc0086bda261f61a005749b8f4cd5437778.tar.bz2 |
vxlan: don't store vxlan flags as ce_mask
The ce_mask is there to indicate whether a certain attribute is
set or not. The VXLAN flags are different, because the flag is
either set or not. It cannot have the meaning of being missing.
Therefore, it should not be stored as a VXLAN_ATTR in ce_mask.
Diffstat (limited to 'include/netlink')
-rw-r--r-- | include/netlink/route/link/vxlan.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/netlink/route/link/vxlan.h b/include/netlink/route/link/vxlan.h index b3fb15a..bc9383b 100644 --- a/include/netlink/route/link/vxlan.h +++ b/include/netlink/route/link/vxlan.h @@ -21,6 +21,15 @@ extern "C" { #define VXLAN_ID_MAX 16777215 +enum { + RTNL_LINK_VXLAN_F_GBP = 1 << 0, +#define RTNL_LINK_VXLAN_F_GBP RTNL_LINK_VXLAN_F_GBP + RTNL_LINK_VXLAN_F_GPE = 1 << 1, +#define RTNL_LINK_VXLAN_F_GPE RTNL_LINK_VXLAN_F_GPE + RTNL_LINK_VXLAN_F_REMCSUM_NOPARTIAL = 1 << 2, +#define RTNL_LINK_VXLAN_F_REMCSUM_NOPARTIAL RTNL_LINK_VXLAN_F_REMCSUM_NOPARTIAL +}; + extern struct rtnl_link *rtnl_link_vxlan_alloc(void); extern int rtnl_link_is_vxlan(struct rtnl_link *); |