START sys/netinet6/rip6cksum 2024-12-29T02:58:13Z ==== run-error-negative ==== cc -O2 -pipe -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet6/rip6cksum/rip6cksum.c cc -o rip6cksum rip6cksum.o # set socket option IPV6_CHECKSUM to -2, expect error ./rip6cksum -c -2 -e socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum -2 setsockopt failed as expected: Invalid argument ==== run-error-odd ==== # set socket option IPV6_CHECKSUM to 1, expect error ./rip6cksum -c 1 -e socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 1 setsockopt failed as expected: Invalid argument ==== run-no-cksum ==== # send and receive packet without checksum ./rip6cksum -r 32 -s 8 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -r 8 -s 32 socket inet6 raw 255 bind ::1 connect ::1 fork child process child pid 91035 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:34 'run-no-cksum') FAILED ==== run-bad-cksum ==== # enable checksum, send packet without checksum, expect icmp ./rip6cksum -c 0 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 32 -s 32 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 0 fork child process child pid 88019 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:40 'run-bad-cksum') FAILED ==== run-disable-cksum ==== # send and receive packet with explicitly disabled checksum ./rip6cksum -c -1 -r 32 -s 8 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -r 8 -s 32 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum -1 fork child process child pid 6233 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:46 'run-disable-cksum') FAILED ==== run-ckoff-0 ==== # use checksum at offset 0 ./rip6cksum -c 0 -r 32 -s 8 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -c 0 -r 8 -s 32 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 0 fork child process child pid 29288 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:52 'run-ckoff-0') FAILED ==== run-ckoff-0-empty ==== # use checksum at offset 0, but packet is empty, expect icmp ./rip6cksum -c 0 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 0 -s 0 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 0 fork child process child pid 19256 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:58 'run-ckoff-0-empty') FAILED ==== run-ckoff-0-short ==== # use checksum at offset 0, but packet is only 1 byte long, expect icmp ./rip6cksum -c 0 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 1 -s 1 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 0 fork child process child pid 18847 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:64 'run-ckoff-0-short') FAILED ==== run-ckoff-0-exact ==== # use checksum at offset 0, packet is exactly 2 bytes long ./rip6cksum -c 0 -r 2 -s 2 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -c 0 -s 2 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 0 fork child process child pid 56009 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:70 'run-ckoff-0-exact') FAILED ==== run-ckoff-0-long ==== # use checksum at offset 0, packet is 3 bytes long ./rip6cksum -c 0 -r 3 -s 3 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -c 0 -s 3 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 0 fork child process child pid 36812 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:76 'run-ckoff-0-long') FAILED ==== run-ckoff-2 ==== # use checksum at offset 2 ./rip6cksum -c 2 -r 32 -s 8 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -c 2 -r 8 -s 32 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 80567 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:82 'run-ckoff-2') FAILED ==== run-ckoff-2-empty ==== # use checksum at offset 2, but packet is empty, expect icmp ./rip6cksum -c 2 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 0 -s 0 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 22689 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:88 'run-ckoff-2-empty') FAILED ==== run-ckoff-2-short-1 ==== # use checksum at offset 2, but packet is only 1 byte long, expect icmp ./rip6cksum -c 2 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 1 -s 1 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 75761 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:94 'run-ckoff-2-short-1') FAILED ==== run-ckoff-2-short-2 ==== # use checksum at offset 2, but packet is only 2 byte long, expect icmp ./rip6cksum -c 2 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 2 -s 2 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 59807 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:100 'run-ckoff-2-short-2') FAILED ==== run-ckoff-2-short-3 ==== # use checksum at offset 2, but packet is only 3 byte long, expect icmp ./rip6cksum -c 2 -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -i -r 3 -s 3 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 13898 wait for child execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: child program python3 status 256 *** Error 1 in . (Makefile:106 'run-ckoff-2-short-3') FAILED ==== run-ckoff-2-exact ==== # use checksum at offset 2, packet is exactly 4 bytes long ./rip6cksum -c 2 -r 4 -s 4 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -c 2 -s 4 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 59416 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:112 'run-ckoff-2-exact') FAILED ==== run-ckoff-2-long ==== # use checksum at offset 2, packet is 5 bytes long ./rip6cksum -c 2 -r 5 -s 5 -w -- python3 -u /usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py -c 2 -s 5 socket inet6 raw 255 bind ::1 connect ::1 setsockopt ipv6 checksum 2 fork child process child pid 38861 select socket read execute python3 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 5, 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' rip6cksum: timeout *** Error 1 in . (Makefile:118 'run-ckoff-2-long') FAILED FAIL sys/netinet6/rip6cksum *** Error 1 in . (Makefile:34 'run-no-cksum'), *** Error 1 in . (Makefile:40 'run-bad-cksum'), *** Error 1 in . (Makefile:46 'run-disable-cksum'), *** Error 1 in . (Makefile:52 'run-ckoff-0'), *** Error 1 in . (Makefile:58 'run-ckoff-0-empty'), *** Error 1 in . (Makefile:64 'run-ckoff-0-short'), *** Error 1 in . (Makefile:70 'run-ckoff-0-exact'), *** Error 1 in . (Makefile:76 'run-ckoff-0-long'), *** Error 1 in . (Makefile:82 'run-ckoff-2'), *** Error 1 in . (Makefile:88 'run-ckoff-2-empty'), *** Error 1 in . (Makefile:94 'run-ckoff-2-short-1'), *** Error 1 in . (Makefile:100 'run-ckoff-2-short-2'), *** Error 1 in . (Makefile:106 'run-ckoff-2-short-3'), *** Error 1 in . (Makefile:112 'run-ckoff-2-exact'), *** Error 1 in . (Makefile:118 'run-ckoff-2-long')