summaryrefslogtreecommitdiff
path: root/zebra/rt_netlink.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-12-04 10:37:40 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-04-14 11:44:39 -0300
commitf78fe8f3d60d23f96adf35f589dd7f257a4a40f4 (patch)
tree1d662e1bae4c06e711ccc632c078354938129bc7 /zebra/rt_netlink.h
parentb9c875150b99094a7bce86ea50332496f763d3d1 (diff)
zebra: export netlink function and change return
Instead of retuning always `0`, lets return the amount of used bytes for the message. This will be used by the new FPM interface to know how many bytes we must reserve for the output buffer. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'zebra/rt_netlink.h')
-rw-r--r--zebra/rt_netlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h
index 2b4b145149..64109e50e6 100644
--- a/zebra/rt_netlink.h
+++ b/zebra/rt_netlink.h
@@ -66,6 +66,9 @@ void rt_netlink_init(void);
/* MPLS label forwarding table change, using dataplane context information. */
extern int netlink_mpls_multipath(int cmd, struct zebra_dplane_ctx *ctx);
+extern ssize_t netlink_route_multipath(int cmd, struct zebra_dplane_ctx *ctx,
+ uint8_t *data, size_t datalen);
+
extern int netlink_route_change(struct nlmsghdr *h, ns_id_t ns_id, int startup);
extern int netlink_route_read(struct zebra_ns *zns);