START sys/netinet6/rip6cksum 2024-12-29T16:42:41Z ==== 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 13419 select socket read execute python3 payload length is 32 filter proto 255 and len = 52 Begin emission: Finished sending 1 packets. 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 76486 wait for child execute python3 Received 0 packets, got 0 answers, remaining 1 packets (, ) payload length is 32 filter icmp6 and len = 124 Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ Begin emission: return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 22165 select socket read execute python3 payload length is 32 filter proto 255 and len = 52 Begin emission: Finished sending 1 packets. 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 69532 select socket read execute python3 payload length is 32 calculated checksum is 3551 filter proto 255 and len = 52 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 77005 wait for child execute python3 Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range payload length is 0 filter icmp6 and len = 92 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 65308 wait for child execute python3 payload length is 1 filter icmp6 and len = 93 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 10371 select socket read execute python3 payload length is 2 calculated checksum is 65276 filter proto 255 Begin emission: Finished sending 1 packets. 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 96891 select socket read execute python3 payload length is 3 calculated checksum is 64763 filter proto 255 Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range Begin emission: Finished sending 1 packets. 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 61580 select socket read execute python3 Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range payload length is 32 calculated checksum is 4065 filter proto 255 and len = 52 Begin emission: Finished sending 1 packets. 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 32518 wait for child execute python3 Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range payload length is 0 filter icmp6 and len = 92 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 19099 wait for child execute python3 payload length is 1 filter icmp6 and len = 93 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 21321 wait for child execute python3 payload length is 2 filter icmp6 and len = 94 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 29837 wait for child execute python3 payload length is 3 filter icmp6 and len = 95 Begin emission: Finished sending 1 packets. Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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 81997 select socket read execute python3 payload length is 4 calculated checksum is 65273 filter proto 255 Begin emission: Finished sending 1 packets. 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 78893 select socket read execute python3 Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range payload length is 5 calculated checksum is 64248 filter proto 255 Begin emission: Finished sending 1 packets. rip6cksum: timeout *** Error 1 in . (Makefile:118 'run-ckoff-2-long') FAILED Received 0 packets, got 0 answers, remaining 1 packets (, ) Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 64, in res=ans[0][0][1] ~~~~~~^^^ File "/usr/local/lib/python3.12/site-packages/scapy/plist.py", line 176, in __getitem__ return self.res.__getitem__(item) ^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: list index out of range 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')