mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
pf tests: fix plfow:v6 after scapy-2.6.0 update
Avoid receiving ICMPv6 destination unreachable packets, because scapy will attempt to parse the pflow information from those (partial) packets as well, and then get confused. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
9c12533672
commit
2e13459e2a
@ -60,7 +60,7 @@ def parse_ipfix(p):
|
||||
c = datafl.payload
|
||||
|
||||
def receive(recvif, recvport):
|
||||
pkts = sp.sniff(iface=recvif, timeout=65)
|
||||
pkts = sp.sniff(iface=recvif, timeout=65, filter="udp port 2055")
|
||||
|
||||
if len(pkts) == 0:
|
||||
print("No data")
|
||||
|
Loading…
Reference in New Issue
Block a user