mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
fix #752 problem: ARP is not updating if mac address changed on remote side
This commit is contained in:
parent
8186327f3d
commit
a08b8b0f17
@ -782,7 +782,20 @@ if_nbr_ipv6ll_to_ipv4ll_neigh_update (struct interface *ifp,
|
|||||||
inet_pton (AF_INET, buf, &ipv4_ll);
|
inet_pton (AF_INET, buf, &ipv4_ll);
|
||||||
|
|
||||||
ipv6_ll_address_to_mac(address, (u_char *)mac);
|
ipv6_ll_address_to_mac(address, (u_char *)mac);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Remove existed arp record for the interface,
|
||||||
|
* because netlink protocol does not support message for update.
|
||||||
|
* supported commands RTM_NEWNEIGH or RTM_DELNEIGH
|
||||||
|
*/
|
||||||
|
|
||||||
|
kernel_neigh_update (0, ifp->ifindex, ipv4_ll.s_addr, mac, 6);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add arp record
|
||||||
|
*/
|
||||||
kernel_neigh_update (add, ifp->ifindex, ipv4_ll.s_addr, mac, 6);
|
kernel_neigh_update (add, ifp->ifindex, ipv4_ll.s_addr, mac, 6);
|
||||||
|
|
||||||
zvrf->neigh_updates++;
|
zvrf->neigh_updates++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user