Skip to content

Commit

Permalink
[arp_responder] Fix error in generate_neigh_adv (#9337)
Browse files Browse the repository at this point in the history
What is the motivation for this PR?
Missing part of this PR: #8697 would causes error while replying ndp.

How did you do it?
Remove useless parameter.

How did you verify/test it?
Run this script to reply ndp.

Signed-off-by: Yaqiang Zhu <[email protected]>
  • Loading branch information
yaqiangz authored Aug 9, 2023
1 parent a7f504c commit f5a7426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scripts/arp_responder.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def generate_arp_reply(local_mac, remote_mac, local_ip, remote_ip, vlan_id):
return l2 / l3

@staticmethod
def generate_neigh_adv(self, local_mac, remote_mac, target_ip, remote_ip):
def generate_neigh_adv(local_mac, remote_mac, target_ip, remote_ip):
neigh_adv_pkt = scapy.Ether(src=local_mac, dst=remote_mac)
neigh_adv_pkt /= scapy.IPv6(src=target_ip, dst=remote_ip)
neigh_adv_pkt /= scapy.ICMPv6ND_NA(tgt=target_ip, R=0, S=1, O=1)
Expand Down

0 comments on commit f5a7426

Please sign in to comment.