START sys/net/pf_opts 2024-12-29T02:44:49Z ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' *** Error 1 in target 'stamp-stop' (ignored) rm -f stamp-bpf* # Destroy interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 127.0.0.11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig lo11 inet6 fe80::11/64 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 inet 127.0.0.12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 inet6 ::1 delete /sbin/ifconfig lo12 inet6 fe80::12/64 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) rm -f stamp-ifconfig # Create and configure loopback interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1/8 /sbin/ifconfig lo11 inet 127.0.0.11 alias /sbin/ifconfig lo11 inet6 ::1/128 /sbin/ifconfig lo11 inet6 fe80::11/64 /sbin/route -n -T 11 add -inet 224.0.0.0/4 127.0.0.1 add net 224.0.0.0/4: gateway 127.0.0.1 /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1/8 /sbin/ifconfig lo12 inet 127.0.0.12 alias /sbin/ifconfig lo12 inet6 ::1/128 /sbin/ifconfig lo12 inet6 fe80::12/64 /sbin/route -n -T 12 add -inet 224.0.0.0/4 127.0.0.1 add net 224.0.0.0/4: gateway 127.0.0.1 # Wait until IPv6 addresses are no longer tentative. for i in `jot 50`; do if ! { /sbin/ifconfig lo11; /sbin/ifconfig lo12; } | fgrep -q tentative; then break; fi; sleep .1; done ! { /sbin/ifconfig lo11; /sbin/ifconfig lo12; } | fgrep tentative ==== pfctl ==== # Create python include file containing the addresses. rm -f addr.py addr.py.tmp echo 'N1="11"' >>addr.py.tmp echo 'IF_N1="lo11"' >>addr.py.tmp echo 'ADDR_N1="127.0.0.11"' >>addr.py.tmp echo 'ADDR6_N1="fe80::11"' >>addr.py.tmp echo 'N2="12"' >>addr.py.tmp echo 'IF_N2="lo12"' >>addr.py.tmp echo 'ADDR_N2="127.0.0.12"' >>addr.py.tmp echo 'ADDR6_N2="fe80::12"' >>addr.py.tmp mv addr.py.tmp addr.py # Load the pf rules into the kernel. cat addr.py /usr/src/regress/sys/net/pf_opts/pf.conf | /sbin/pfctl -n -f - cat addr.py /usr/src/regress/sys/net/pf_opts/pf.conf | /sbin/pfctl -a regress -f - ==== run-ping ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG # Ping localhost on loopback /sbin/ping -n -w 1 -c 1 -V 11 127.0.0.11 PING 127.0.0.11 (127.0.0.11): 56 data bytes 64 bytes from 127.0.0.11: icmp_seq=0 ttl=255 time=0.043 ms --- 127.0.0.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.043/0.043/0.043/0.000 ms /sbin/ping -n -w 1 -c 1 -V 12 127.0.0.12 PING 127.0.0.12 (127.0.0.12): 56 data bytes 64 bytes from 127.0.0.12: icmp_seq=0 ttl=255 time=0.033 ms --- 127.0.0.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.033/0.033/0.033/0.000 ms ==== run-ping6 ==== # Ping localhost on loopback /sbin/ping6 -n -w 1 -c 1 -V 11 fe80::11%lo11 PING fe80::11%lo11 (fe80::11%lo11): 56 data bytes 64 bytes from fe80::11%lo11: icmp_seq=0 hlim=64 time=0.044 ms --- fe80::11%lo11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.044/0.044/0.044/0.000 ms /sbin/ping6 -n -w 1 -c 1 -V 12 fe80::12%lo12 PING fe80::12%lo12 (fe80::12%lo12): 56 data bytes 64 bytes from fe80::12%lo12: icmp_seq=0 hlim=64 time=0.040 ms --- fe80::12%lo12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.040/0.040/0.040/0.000 ms ==== run-bpf-ping ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 4 packets received by filter 0 packets received by filter 0 packets dropped by kernel 0 packets dropped by kernel 4 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # Check that ping packet went through loopback. grep ' 127.0.0.11: icmp: echo request' lo11.tcpdump 03:44:53.680152 127.0.0.11 > 127.0.0.11: icmp: echo request (id:cbb3 seq:0) [icmp cksum ok] (ttl 255, id 65337, len 84, bad ip cksum 0! -> be58) grep ' 127.0.0.12: icmp: echo request' lo12.tcpdump 03:44:53.681837 127.0.0.12 > 127.0.0.12: icmp: echo request (id:1675 seq:0) [icmp cksum ok] (ttl 255, id 48421, len 84, bad ip cksum 0! -> 6b) grep ' fe80:.*::11: icmp6: echo request' lo11.tcpdump 03:44:53.717832 fe80:160::1 > fe80:160::11: icmp6: echo request (id:8285 seq:0) [bad icmp6 cksum 86e! -> 5ae] (len 64, hlim 64) grep ' fe80:.*::12: icmp6: echo request' lo12.tcpdump 03:44:53.721257 fe80:161::1 > fe80:161::12: icmp6: echo request (id:b829 seq:0) [bad icmp6 cksum c29c! -> bfda] (len 64, hlim 64) ! grep ': icmp: echo request' pflog0.tcpdump ! grep ': icmp6: echo request' pflog0.tcpdump ==== run-ping-record ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG # Ping localhost with record route option /sbin/ping -n -w 1 -c 1 -V 11 -R 127.0.0.11 PING 127.0.0.11 (127.0.0.11): 56 data bytes 64 bytes from 127.0.0.11: icmp_seq=0 ttl=255 time=0.048 ms RR: 127.0.0.11 127.0.0.11 --- 127.0.0.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.048/0.048/0.048/0.000 ms ! /sbin/ping -n -w 1 -c 1 -V 12 -R 127.0.0.12 ping: sendmsg: Permission denied PING 127.0.0.12 (127.0.0.12): 56 data bytes ping: wrote 127.0.0.12 64 chars, ret=-1 --- 127.0.0.12 ping statistics --- 1 packets transmitted, 0 packets received, 100.0% packet loss ==== run-bpf-ping-record ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets dropped by kernel 2 packets received by filter 0 packets dropped by kernel 1 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # Check that ping packet with options is in pflog0. grep ' 127.0.0.11: icmp: echo request .* optlen=40 RR' lo11.tcpdump 03:44:57.900567 127.0.0.11 > 127.0.0.11: icmp: echo request (id:e79d seq:0) [icmp cksum ok] (ttl 255, id 11154, len 124, bad ip cksum 0! -> 7cb1, optlen=40 RR{39}= RR{#0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0} EOL) grep ' 127.0.0.12: icmp: echo request .* optlen=40 RR' pflog0.tcpdump 03:44:57.903745 rule 5.regress.1/(match) [uid 0, pid 70853] pass out on lo12: 127.0.0.12 > 127.0.0.12: icmp: echo request (id:7049 seq:0) [icmp cksum ok] (ttl 255, id 42371, len 124, bad ip cksum 1249! -> 2be, optlen=40 RR{39}= RR{#0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0} EOL) ==== run-icmp ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp.py N1 send icmp without options Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:207 'run-icmp') FAILED ==== run-icmp6 ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6.py N1 send icmp6 without options Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:212 'run-icmp6') FAILED ==== run-bpf-icmp ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets received by filter 0 packets received by filter 0 packets dropped by kernel 0 packets dropped by kernel 0 packets dropped by kernel rm -f stamp-bpf* # Check that icmp packet went through loopback. grep ' 127.0.0.11: icmp: type-#6' lo11.tcpdump *** Error 1 in . (Makefile:218 'run-bpf-icmp') FAILED ==== run-icmp6-hop ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_hop.py N1 send icmp6 with hop by hop header Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_hop.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:229 'run-icmp6-hop') FAILED ==== run-icmp6-dst ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_dst.py N1 send icmp6 with destination options header Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_dst.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:234 'run-icmp6-dst') FAILED ==== run-bpf-ext ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # Check that icmp6 packet with extension headers were blocked fgrep ' fe80::12: HBH icmp6:' pflog0.tcpdump *** Error 1 in . (Makefile:240 'run-bpf-ext') FAILED ==== run-icmp-pad ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp_pad.py N1 send icmp with options padding Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp_pad.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:248 'run-icmp-pad') FAILED ==== run-icmp-eol ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp_eol.py N1 send icmp with option end of list Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp_eol.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:253 'run-icmp-eol') FAILED ==== run-icmp6-pad ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_hop_pad.py N1 send icmp6 with hop by hop header with padding Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_hop_pad.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:258 'run-icmp6-pad') FAILED ==== run-icmp-max ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp_max.py N1 send icmp with maximum length option Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp_max.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:263 'run-icmp-max') FAILED ==== run-icmp6-max ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_hop_max.py N1 send icmp6 with hop by hop header with maxium padding Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_hop_max.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:268 'run-icmp6-max') FAILED ==== run-icmp-ra ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp_ra.py N1 send icmp with router alert Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp_ra.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:273 'run-icmp-ra') FAILED ==== run-icmp6-ra ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_hop_ra.py N1 send icmp6 with hop by hop header with router alert Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_hop_ra.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:278 'run-icmp6-ra') FAILED ==== run-icmp-bad ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp_bad.py N1 send icmp with unknown option Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp_bad.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:283 'run-icmp-bad') FAILED ==== run-icmp6-bad ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_hop_bad.py N1 send icmp6 with hop by hop header with unknown option Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_hop_bad.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:288 'run-icmp6-bad') FAILED ==== run-bpf-opts ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # Check that icmp packet with options were blocked grep ' 127.0.0.12:.* optlen=4 NOP NOP NOP NOP)' pflog0.tcpdump *** Error 1 in . (Makefile:294 'run-bpf-opts') FAILED ==== run-igmp ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/igmp_ra.py N1 send internet group management protocol with router alert Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/igmp_ra.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:310 'run-igmp') FAILED ==== run-icmp6-mld ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_mld_ra.py N1 send icmp6 multicast listener discovery with router alert Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_mld_ra.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:315 'run-icmp6-mld') FAILED ==== run-bpf-mcast ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # Check that multicast protocol packet with router alert passed grep '127.0.0.12 > 224.0.0.1: igmp query .* IPOPT-148{4}' lo12.tcpdump *** Error 1 in . (Makefile:322 'run-bpf-mcast') FAILED ==== run-igmp-bad ==== rm -f lo11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo11 >lo11.tcpdump & rm -f stamp-stop rm -f lo12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12' || true tcpdump: listening on lo11, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni lo12 >lo12.tcpdump & rm -f stamp-stop rm -f pflog0.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0' || true tcpdump: listening on lo12, link-type LOOP /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog0 >pflog0.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog0, link-type PFLOG /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/igmp_bad.py N1 send internet group management protocol with unknown option Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/igmp_bad.py", line 8, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:334 'run-igmp-bad') FAILED ==== run-icmp6-mld-bad ==== /sbin/route -T 11 exec env PYTHONPATH=/usr/src/regress/sys/net/pf_opts/obj python3 -u /usr/src/regress/sys/net/pf_opts/icmp6_mld_bad.py N1 send icmp6 multicast listener discovery with unknown option Traceback (most recent call last): File "/usr/src/regress/sys/net/pf_opts/icmp6_mld_bad.py", line 9, in from scapy.all import * File "/usr/local/lib/python3.12/site-packages/scapy/all.py", line 10, in from scapy.base_classes import * File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 26, in from scapy.modules.six.moves import range ModuleNotFoundError: No module named 'scapy.modules.six.moves' *** Error 1 in . (Makefile:339 'run-icmp6-mld-bad') FAILED ==== run-bpf-mcast-bad ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets received by filter 0 packets dropped by kernel 0 packets dropped by kernel 0 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # Check that multicast protocol packet with options were blocked grep '127.0.0.12 > 224.0.0.1: igmp query .* IPOPT-3{4}' pflog0.tcpdump *** Error 1 in . (Makefile:346 'run-bpf-mcast-bad') FAILED ==== unconfig ==== # Destroy interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1 delete /sbin/ifconfig lo11 inet 127.0.0.11 delete /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig lo11 inet6 fe80::11/64 delete /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1 delete /sbin/ifconfig lo12 inet 127.0.0.12 delete /sbin/ifconfig lo12 inet6 ::1 delete /sbin/ifconfig lo12 inet6 fe80::12/64 delete rm -f stamp-ifconfig FAIL sys/net/pf_opts *** Error 1 in . (Makefile:207 'run-icmp'), *** Error 1 in . (Makefile:212 'run-icmp6'), *** Error 1 in . (Makefile:218 'run-bpf-icmp'), *** Error 1 in . (Makefile:229 'run-icmp6-hop'), *** Error 1 in . (Makefile:234 'run-icmp6-dst'), *** Error 1 in . (Makefile:240 'run-bpf-ext'), *** Error 1 in . (Makefile:248 'run-icmp-pad'), *** Error 1 in . (Makefile:253 'run-icmp-eol'), *** Error 1 in . (Makefile:258 'run-icmp6-pad'), *** Error 1 in . (Makefile:263 'run-icmp-max'), *** Error 1 in . (Makefile:268 'run-icmp6-max'), *** Error 1 in . (Makefile:273 'run-icmp-ra'), *** Error 1 in . (Makefile:278 'run-icmp6-ra'), *** Error 1 in . (Makefile:283 'run-icmp-bad'), *** Error 1 in . (Makefile:288 'run-icmp6-bad'), *** Error 1 in . (Makefile:294 'run-bpf-opts'), *** Error 1 in . (Makefile:310 'run-igmp'), *** Error 1 in . (Makefile:315 'run-icmp6-mld'), *** Error 1 in . (Makefile:322 'run-bpf-mcast'), *** Error 1 in . (Makefile:334 'run-igmp-bad'), *** Error 1 in . (Makefile:339 'run-icmp6-mld-bad'), *** Error 1 in . (Makefile:346 'run-bpf-mcast-bad')