Author: kp
Date: Tue Jan  9 19:02:42 2018
New Revision: 327735
URL: https://svnweb.freebsd.org/changeset/base/327735

Log:
  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.

Modified:
  head/tests/sys/netpfil/pf/pft_ping.py

Modified: head/tests/sys/netpfil/pf/pft_ping.py
==============================================================================
--- head/tests/sys/netpfil/pf/pft_ping.py       Tue Jan  9 17:41:34 2018        
(r327734)
+++ head/tests/sys/netpfil/pf/pft_ping.py       Tue Jan  9 19:02:42 2018        
(r327735)
@@ -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])
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to