Skip to content

Commit

Permalink
pf tests: fix plfow:v6 after scapy-2.6.0 update
Browse files Browse the repository at this point in the history
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")
  • Loading branch information
kprovost committed Oct 15, 2024
1 parent 9c12533 commit 2e13459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sys/netpfil/pf/pft_read_ipfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2e13459

Please sign in to comment.