START sys/netinet6/rip6cksum 2024-10-27T13:33:19Z ==== run-error-negative ==== cc -O2 -pipe -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 execute python3 child pid 52595 select socket read 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 execute python3 child pid 20109 wait for child rip6cksum: child program python3 status 134 *** 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 11933 select socket read execute python3 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 29731 execute python3 select socket read 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 execute python3 child pid 93273 wait for child rip6cksum: child program python3 status 134 *** 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 45742 wait for child execute python3 rip6cksum: child program python3 status 134 *** 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 execute python3 child pid 49521 select socket read 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 execute python3 child pid 60599 select socket read 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 execute python3 child pid 97565 select socket read 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 execute python3 child pid 1973 wait for child rip6cksum: child program python3 status 134 *** 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 49680 wait for child execute python3 rip6cksum: child program python3 status 134 *** 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 execute python3 child pid 90591 wait for child rip6cksum: child program python3 status 134 *** 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 67158 wait for child execute python3 rip6cksum: child program python3 status 134 *** 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 execute python3 child pid 69520 select socket read 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 execute python3 child pid 49833 select socket read 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')