diff options
| author | Stephen Worley <sworley@nvidia.com> | 2021-04-01 11:50:31 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2023-02-13 18:12:05 -0500 |
| commit | 5fa6bfffb1201c98960ea8a3808d6e1e7ed8c312 (patch) | |
| tree | c49c7323b12e1c28e3172d08a0c10e74573e28a7 /zebra/kernel_netlink.c | |
| parent | 31e1a1033d95a14d24bd87cb4bec480067c01a89 (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.c')
| -rw-r--r-- | zebra/kernel_netlink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 42afe61469..0c45350700 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -705,6 +705,12 @@ bool nl_attr_put32(struct nlmsghdr *n, unsigned int maxlen, int type, return nl_attr_put(n, maxlen, type, &data, sizeof(uint32_t)); } +bool nl_attr_put64(struct nlmsghdr *n, unsigned int maxlen, int type, + uint64_t data) +{ + return nl_attr_put(n, maxlen, type, &data, sizeof(uint64_t)); +} + struct rtattr *nl_attr_nest(struct nlmsghdr *n, unsigned int maxlen, int type) { struct rtattr *nest = NLMSG_TAIL(n); |
