START sys/netinet/pmtu 2025-01-17T05:22:34Z rm -f addr.py addr.py.tmp echo 'LOCAL_IF = "em2"' >>addr.py.tmp echo 'LOCAL_MAC = "90:e2:ba:a4:76:86"' >>addr.py.tmp echo 'REMOTE_MAC = "90:e2:ba:d8:67:2d"' >>addr.py.tmp echo 'LOCAL_ADDR = "10.188.81.21"' >>addr.py.tmp echo 'LOCAL_ADDR6 = "fdd7:e83e:66bc:81::21"' >>addr.py.tmp echo 'REMOTE_ADDR = "10.188.81.22"' >>addr.py.tmp echo 'REMOTE_ADDR6 = "fdd7:e83e:66bc:81::22"' >>addr.py.tmp echo 'FAKE_NET_ADDR = "10.188.80.188"' >>addr.py.tmp echo 'FAKE_NET_ADDR6 = "fdd7:e83e:66bc:80::188"' >>addr.py.tmp echo 'FAKE_NET = "10.188.80.0/24"' >>addr.py.tmp echo 'FAKE_NET6 = "fdd7:e83e:66bc:80::/64"' >>addr.py.tmp mv addr.py.tmp addr.py true ssh -t ot2 true Pseudo-terminal will not be allocated because stdin is not a terminal. ==== pfctl ==== # default "block return; pass" interferes with test, use "block; pass" cat addr.py /usr/src/regress/sys/netinet/pmtu/pf.conf | /sbin/pfctl -n -f - cat addr.py /usr/src/regress/sys/netinet/pmtu/pf.conf | /sbin/pfctl -a regress -f - cat addr.py /usr/src/regress/sys/netinet/pmtu/pf.conf | ssh ot2 pfctl -a regress -f - ==== run-ping ==== route -n delete -inet -host 10.188.81.22 || true delete host 10.188.81.22 ssh ot2 route -n delete -inet -host 10.188.80.188 || true delete host 10.188.80.188: not in table Check ping LOCAL_ADDR ping -n -c 1 10.188.81.21 PING 10.188.81.21 (10.188.81.21): 56 data bytes 64 bytes from 10.188.81.21: icmp_seq=0 ttl=255 time=0.046 ms --- 10.188.81.21 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms Check ping REMOTE_ADDR ping -n -c 1 10.188.81.22 PING 10.188.81.22 (10.188.81.22): 56 data bytes 64 bytes from 10.188.81.22: icmp_seq=0 ttl=255 time=0.420 ms --- 10.188.81.22 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.420/0.420/0.420/0.000 ms ==== run-ping6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table Check ping6 LOCAL_ADDR6 ping6 -n -c 1 fdd7:e83e:66bc:81::21 PING fdd7:e83e:66bc:81::21 (fdd7:e83e:66bc:81::21): 56 data bytes 64 bytes from fdd7:e83e:66bc:81::21: icmp_seq=0 hlim=64 time=0.058 ms --- fdd7:e83e:66bc:81::21 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.058/0.058/0.058/0.000 ms Check ping6 REMOTE_ADDR6 ping6 -n -c 1 fdd7:e83e:66bc:81::22 PING fdd7:e83e:66bc:81::22 (fdd7:e83e:66bc:81::22): 56 data bytes 64 bytes from fdd7:e83e:66bc:81::22: icmp_seq=0 hlim=64 time=0.385 ms --- fdd7:e83e:66bc:81::22 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.385/0.385/0.385/0.000 ms ==== run-pmtu ==== route -n delete -inet -host 10.188.81.22 || true delete host 10.188.81.22 ssh ot2 route -n delete -inet -host 10.188.80.188 || true delete host 10.188.80.188: not in table Send ICMP fragmentation needed after fake TCP connect PYTHONPATH=/usr/src/regress/sys/netinet/pmtu/obj python3 -u /usr/src/regress/sys/netinet/pmtu/tcp_connect.py Send SYN packet, receive SYN+ACK. /usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). 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/netinet/pmtu/tcp_connect.py", line 27, in synack=sr1(ip/syn, iface=LOCAL_IF, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 732, in sr1 ans, _ = sr(*args, **kargs) ^^^^^^^^^^^^^^^^^^ 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 'em2' not found ! *** Error 1 in . (Makefile:119 'run-pmtu') FAILED ==== run-pmtu6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table Send ICMP6 packet too big after fake TCP connect PYTHONPATH=/usr/src/regress/sys/netinet/pmtu/obj python3 -u /usr/src/regress/sys/netinet/pmtu/tcp_connect6.py Send SYN packet, receive SYN+ACK. Traceback (most recent call last): File "/usr/src/regress/sys/netinet/pmtu/tcp_connect6.py", line 28, in synack=srp1(e/ip6/syn, iface=LOCAL_IF, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 769, in srp1 ans, _ = srp(*args, **kargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 755, in srp iface = resolve_iface(iface 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 'em2' not found ! *** Error 1 in . (Makefile:123 'run-pmtu6') FAILED ==== run-udp6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table Send ICMP6 packet too big after UDP echo PYTHONPATH=/usr/src/regress/sys/netinet/pmtu/obj python3 -u /usr/src/regress/sys/netinet/pmtu/udp_echo6.py Send UDP packet with 1400 octets payload, receive echo. Traceback (most recent call last): File "/usr/src/regress/sys/netinet/pmtu/udp_echo6.py", line 35, in echo=srp1(e/ip6/udp, iface=LOCAL_IF, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 769, in srp1 ans, _ = srp(*args, **kargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 755, in srp iface = resolve_iface(iface 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 'em2' not found ! *** Error 1 in . (Makefile:128 'run-udp6') FAILED ==== run-gateway6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table Send ICMP6 packet too big after UDP echo PYTHONPATH=/usr/src/regress/sys/netinet/pmtu/obj python3 -u /usr/src/regress/sys/netinet/pmtu/udp_echo6.py Send UDP packet with 1400 octets payload, receive echo. Traceback (most recent call last): File "/usr/src/regress/sys/netinet/pmtu/udp_echo6.py", line 35, in echo=srp1(e/ip6/udp, iface=LOCAL_IF, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 769, in srp1 ans, _ = srp(*args, **kargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 755, in srp iface = resolve_iface(iface 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 'em2' not found ! *** Error 1 in . (Makefile:128 'run-udp6') FAILED ==== run-tcpfrag6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table Send ICMP6 and try to trigger a short TCP segment PYTHONPATH=/usr/src/regress/sys/netinet/pmtu/obj python3 -u /usr/src/regress/sys/netinet/pmtu/tcp_atomicfrag6.py Send SYN packet, receive SYN+ACK. Traceback (most recent call last): File "/usr/src/regress/sys/netinet/pmtu/tcp_atomicfrag6.py", line 28, in synack=srp1(e/ip6/syn, iface=LOCAL_IF, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 769, in srp1 ans, _ = srp(*args, **kargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 755, in srp iface = resolve_iface(iface 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 'em2' not found ! *** Error 1 in . (Makefile:144 'run-tcpfrag6') FAILED ==== run-udpfrag6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table Send ICMP6 and try to trigger an atomic UDP IPv6 fragment PYTHONPATH=/usr/src/regress/sys/netinet/pmtu/obj python3 -u /usr/src/regress/sys/netinet/pmtu/udp_atomicfrag6.py Send UDP packet with 1200 octets payload, receive echo. Traceback (most recent call last): File "/usr/src/regress/sys/netinet/pmtu/udp_atomicfrag6.py", line 35, in echo=srp1(e/ip6/udp, iface=LOCAL_IF, timeout=5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 769, in srp1 ans, _ = srp(*args, **kargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py", line 755, in srp iface = resolve_iface(iface 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 'em2' not found ! *** Error 1 in . (Makefile:148 'run-udpfrag6') FAILED ==== reset-route ==== route -n delete -inet -host 10.188.81.22 || true delete host 10.188.81.22 ssh ot2 route -n delete -inet -host 10.188.80.188 || true delete host 10.188.80.188: not in table ==== reset-route6 ==== route -n delete -inet6 -host fdd7:e83e:66bc:81::22 || true delete host fdd7:e83e:66bc:81::22 ssh ot2 route -n delete -inet6 -host fdd7:e83e:66bc:80::188 || true delete host fdd7:e83e:66bc:80::188: not in table FAIL sys/netinet/pmtu *** Error 1 in . (Makefile:119 'run-pmtu'), *** Error 1 in . (Makefile:123 'run-pmtu6'), *** Error 1 in . (Makefile:128 'run-udp6'), *** Error 1 in . (Makefile:128 'run-udp6'), *** Error 1 in . (Makefile:144 'run-tcpfrag6'), *** Error 1 in . (Makefile:148 'run-udpfrag6')