diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-12-12 21:33:41 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-12-12 21:33:41 +0000 |
commit | 6b5b665457c95943ceee7aea1720b88b843ae8d9 (patch) | |
tree | 1df35088aa2f20a386067b982e4558264a7c485d /regress/sys | |
parent | d04dbb6e0eddea940f1dbdf862093bd143f380dd (diff) |
Set promiscuous mode during srp1() to receive the arp reply directed
to the ethernet multicast address. This fixes the test on my
hardware setup, it was only passing in qemu before. At least scapy
2.3.3p1 is needed to support the promisc=1 parameter here.
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/netinet/arp/arp_multicast.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/sys/netinet/arp/arp_multicast.py b/regress/sys/netinet/arp/arp_multicast.py index d8310cd50a1..57643f1a8a5 100644 --- a/regress/sys/netinet/arp/arp_multicast.py +++ b/regress/sys/netinet/arp/arp_multicast.py @@ -12,7 +12,7 @@ arp=ARP(op='who-has', hwsrc="33:33:33:33:33:33", psrc=LOCAL_ADDR, hwdst="ff:ff:ff:ff:ff:ff", pdst=REMOTE_ADDR) eth=Ether(src=LOCAL_MAC, dst="ff:ff:ff:ff:ff:ff")/arp -e=srp1(eth, iface=LOCAL_IF, timeout=2) +e=srp1(eth, iface=LOCAL_IF, promisc=1, timeout=2) if e and e.type == ETH_P_ARP: a=e.payload |