Skip to content

Commit 53bd488

Browse files
stepanblyschakabdosi
authored andcommitted
[restore_neighbors.py] build arp packet with correct hwsrc and psrc (sonic-net#1158)
Otherwise, we can see that DUT after warm reboot sends ARP packets with management IP (10.112.71.4) Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
1 parent f8661b9 commit 53bd488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neighsyncd/restore_neighbors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def set_neigh_in_kernel(ipclass, family, intf_idx, dst_ip, dmac):
194194
def build_arp_ns_pkt(family, smac, src_ip, dst_ip):
195195
if family == 'IPv4':
196196
eth = Ether(src=smac, dst='ff:ff:ff:ff:ff:ff')
197-
pkt = eth/ARP(op='who-has', pdst=dst_ip)
197+
pkt = eth/ARP(op='who-has', pdst=dst_ip, psrc=src_ip, hwsrc=smac)
198198
elif family == 'IPv6':
199199
nsma = in6_getnsma(inet_pton(AF_INET6, dst_ip))
200200
mcast_dst_ip = inet_ntop(AF_INET6, nsma)

0 commit comments

Comments
 (0)