Skip to content

Commit

Permalink
[restore_neighbors] fix failure with scapy 2.4.2 (sonic-net#862)
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
  • Loading branch information
stepanblyschak authored and lguohan committed May 8, 2019
1 parent f889f80 commit 8828152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neighsyncd/restore_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def set_neigh_in_kernel(ipclass, family, intf_idx, dst_ip, dmac):
def build_arp_ns_pkt(family, smac, src_ip, dst_ip):
if family == 'IPv4':
eth = Ether(src=smac, dst='ff:ff:ff:ff:ff:ff')
pkt = eth/ARP(op=ARP.who_has, pdst=dst_ip)
pkt = eth/ARP(op='who-has', pdst=dst_ip)
elif family == 'IPv6':
nsma = in6_getnsma(inet_pton(AF_INET6, dst_ip))
mcast_dst_ip = inet_ntop(AF_INET6, nsma)
Expand Down

0 comments on commit 8828152

Please sign in to comment.