diff options
author | 2014-12-19 21:41:20 +0000 | |
---|---|---|
committer | 2014-12-19 21:41:20 +0000 | |
commit | 9c70e3bf59975b9b55a24c9de595a22f5cb34542 (patch) | |
tree | c35d679e10ae06a2a8d1d8cf7c163ec7fea8bfa9 /regress/sys/net/pf_fragment/frag6.py | |
parent | no need to kvm the palloc. the pgsize is more correctly accessed via pool. (diff) | |
download | wireguard-openbsd-9c70e3bf59975b9b55a24c9de595a22f5cb34542.tar.xz wireguard-openbsd-9c70e3bf59975b9b55a24c9de595a22f5cb34542.zip |
Use a simpler expression to check the ether type in scapy. This
makes the fragment tests work on FreeBSD. From Ilya Bakulin.
Diffstat (limited to 'regress/sys/net/pf_fragment/frag6.py')
-rw-r--r-- | regress/sys/net/pf_fragment/frag6.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/sys/net/pf_fragment/frag6.py b/regress/sys/net/pf_fragment/frag6.py index 88304f46223..1fe1b03f0dc 100644 --- a/regress/sys/net/pf_fragment/frag6.py +++ b/regress/sys/net/pf_fragment/frag6.py @@ -25,7 +25,7 @@ if os.fork() == 0: ans=sniff(iface=SRC_IF, timeout=3, filter= "ip6 and src "+dstaddr+" and dst "+SRC_OUT6+" and icmp6") a=ans[0] -if a and a.type == scapy.layers.dot11.ETHER_TYPES.IPv6 and \ +if a and a.type == ETH_P_IPV6 and \ ipv6nh[a.payload.nh] == 'ICMPv6' and \ icmp6types[a.payload.payload.type] == 'Echo Reply': id=a.payload.payload.id |