summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2020-05-15 13:58:30 -0700
committervivek <vivek@cumulusnetworks.com>2020-05-15 13:58:30 -0700
commit4682d1bf81b028bccfd8c158d6fdc8c9932be860 (patch)
treef655be265852653c2dba682eeef7db1038a6ed35
parent36caef199ae3af4efddda7b5d2a6d9f43b8f58c4 (diff)
zebra: Pass correct buffer to MAC FDB netlink message build
Fixes: zebra: adapt and export rmac netlink functions Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
-rw-r--r--zebra/rt_netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 466e985494..5d0026ccbb 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -2975,7 +2975,6 @@ netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx, uint8_t *data,
int cmd;
uint8_t flags;
uint16_t state;
- uint8_t nl_pkt[NL_PKT_BUF_SIZE];
cmd = dplane_ctx_get_op(ctx) == DPLANE_OP_MAC_INSTALL
? RTM_NEWNEIGH : RTM_DELNEIGH;
@@ -3016,7 +3015,7 @@ netlink_macfdb_update_ctx(struct zebra_dplane_ctx *ctx, uint8_t *data,
total = netlink_update_neigh_ctx_internal(
ctx, cmd, dplane_ctx_mac_get_addr(ctx),
dplane_ctx_neigh_get_ipaddr(ctx), true, AF_BRIDGE, 0,
- flags, state, nl_pkt, sizeof(nl_pkt));
+ flags, state, data, datalen);
return total;
}