mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 13:30:21 +00:00
zebra: fixes NDA_DST in netlink_neigh_update() function
When netlink_neigh_update() is called, the link registration was failing, due to bad request length. Also, the query was failing if NDA_DST was an ipv6 address. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
451e2b8c7e
commit
df948efc56
@ -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,
|
nl_attr_put(&req.n, sizeof(req), NDA_PROTOCOL, &protocol,
|
||||||
sizeof(protocol));
|
sizeof(protocol));
|
||||||
req.ndm.ndm_type = RTN_UNICAST;
|
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)
|
if (lla)
|
||||||
nl_attr_put(&req.n, sizeof(req), NDA_LLADDR, lla, llalen);
|
nl_attr_put(&req.n, sizeof(req), NDA_LLADDR, lla, llalen);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user