summaryrefslogtreecommitdiff
path: root/zebra/kernel_netlink.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2021-04-01 11:50:31 -0400
committerStephen Worley <sworley@nvidia.com>2023-02-13 18:12:05 -0500
commit5fa6bfffb1201c98960ea8a3808d6e1e7ed8c312 (patch)
treec49c7323b12e1c28e3172d08a0c10e74573e28a7 /zebra/kernel_netlink.h
parent31e1a1033d95a14d24bd87cb4bec480067c01a89 (diff)
zebra: encode vni label via lwt encap
Encode the vni label during route install on linux systems via lwt encap 64bit LWTUNNEL_IP_ID. The kernel expects this in network byte order, so we convert it. Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/kernel_netlink.h')
-rw-r--r--zebra/kernel_netlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/kernel_netlink.h b/zebra/kernel_netlink.h
index 08cd706a9f..ad6e639b42 100644
--- a/zebra/kernel_netlink.h
+++ b/zebra/kernel_netlink.h
@@ -48,6 +48,8 @@ extern bool nl_attr_put16(struct nlmsghdr *n, unsigned int maxlen, int type,
uint16_t data);
extern bool nl_attr_put32(struct nlmsghdr *n, unsigned int maxlen, int type,
uint32_t data);
+extern bool nl_attr_put64(struct nlmsghdr *n, unsigned int maxlen, int type,
+ uint64_t data);
/*
* nl_attr_nest - start an attribute nest.