HomeFreeBSD

Follow r354121 to fix some python3 errors in sys.netpfil.*

Description

Follow r354121 to fix some python3 errors in sys.netpfil.*

stderr:

Traceback (most recent call last):

File "/usr/tests/sys/netpfil/common/pft_ping.py", line 135, in <module>
  main()
File "/usr/tests/sys/netpfil/common/pft_ping.py", line 124, in main
  ping(args.sendif[0], args.to[0], args)
File "/usr/tests/sys/netpfil/common/pft_ping.py", line 74, in ping
  raw = sp.raw(str(PAYLOAD_MAGIC))
File "/usr/local/lib/python3.6/site-packages/scapy/compat.py", line 52, in raw
  return bytes(x)

TypeError: string argument without an encoding

MFC with: r354121
Sponsored by: The FreeBSD Foundation

(cherry picked from commit cfa8b6482740b2be1719d51e927f76b4adec3b92)

Details

Provenance
lwhsuAuthored on Oct 27 2019, 9:07 PM
kpCommitted on Jan 3 2021, 8:26 PM
Parents
rG8c45c8982a07: Upgrade (scapy) py2 tests to work on py3.
Branches
Unknown
Tags
Unknown