START sys/netinet6/rip6cksum 2025-01-17T05:26:58Z ==== 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 14663 select socket read execute python3 payload length is 32 filter proto 255 and len = 52 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 5516 wait for child execute python3 payload length is 32 filter icmp6 and len = 124 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 21057 select socket read execute python3 payload length is 32 filter proto 255 and len = 52 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 37739 select socket read execute python3 payload length is 32 calculated checksum is 3551 filter proto 255 and len = 52 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 48591 wait for child execute python3 payload length is 0 filter icmp6 and len = 92 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 8717 wait for child execute python3 payload length is 1 filter icmp6 and len = 93 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 53308 select socket read execute python3 payload length is 2 calculated checksum is 65276 filter proto 255 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 84838 select socket read execute python3 payload length is 3 calculated checksum is 64763 filter proto 255 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 57609 select socket read execute python3 payload length is 32 calculated checksum is 4065 filter proto 255 and len = 52 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 22601 wait for child execute python3 payload length is 0 filter icmp6 and len = 92 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 29290 wait for child execute python3 payload length is 1 filter icmp6 and len = 93 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 95668 wait for child execute python3 payload length is 2 filter icmp6 and len = 94 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 24479 wait for child execute python3 payload length is 3 filter icmp6 and len = 95 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 11646 select socket read execute python3 payload length is 4 calculated checksum is 65273 filter proto 255 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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 80482 select socket read execute python3 payload length is 5 calculated checksum is 64248 filter proto 255 /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:699: SyntaxWarning: 'iface' has no effect on L3 I/O sr(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast warnings.warn( Traceback (most recent call last): File "/usr/src/regress/sys/netinet6/rip6cksum/sendrecv.py", line 62, in ans=sr(req, iface="lo0", filter=filter, timeout=10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 705, in sr iface, ipv6 = _interface_selection(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 676, in _interface_selection iff = resolve_iface(_iff or conf.iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 434, in resolve_iface return resolve_iface(dev, retry=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/interfaces.py", line 431, in resolve_iface raise ValueError("Interface '%s' not found !" % dev) ValueError: Interface 'lo0' not found ! 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')