From a60f45a0d555dedbf52a610d6071a4bb4fb07769 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Tue, 9 Jan 2018 19:02:42 +0000 Subject: [PATCH] pf tests: Fix pft_ping.py to work with scapy 2.3.3 Scapy requires the Raw payload to be a string, which was not the case. This caused the pft_ping.py script to fail, which in turn caused the test to fail. --- tests/sys/netpfil/pf/pft_ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/netpfil/pf/pft_ping.py b/tests/sys/netpfil/pf/pft_ping.py index 98bce2e0716f..cfd366bbbdcc 100644 --- a/tests/sys/netpfil/pf/pft_ping.py +++ b/tests/sys/netpfil/pf/pft_ping.py @@ -79,7 +79,7 @@ def ping(send_if, dst_ip, args): ether = sp.Ether() ip = sp.IP(dst=dst_ip) icmp = sp.ICMP(type='echo-request') - raw = sp.Raw(PAYLOAD_MAGIC) + raw = sp.Raw(str(PAYLOAD_MAGIC)) if args.send_tos: ip.tos = int(args.send_tos[0])