diff options
Diffstat (limited to '')
-rw-r--r-- | zebra/rt_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index be9c91367..90d809475 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -1570,7 +1570,8 @@ static int netlink_neigh_update(int cmd, int ifindex, void *addr, char *lla, nl_attr_put(&req.n, sizeof(req), NDA_PROTOCOL, &protocol, sizeof(protocol)); req.ndm.ndm_type = RTN_UNICAST; - nl_attr_put32(&req.n, family2addrsize(family), NDA_DST, addr); + nl_attr_put(&req.n, sizeof(req), NDA_DST, addr, + family2addrsize(family)); if (lla) nl_attr_put(&req.n, sizeof(req), NDA_LLADDR, lla, llalen); |