START sys/net/gif 2023-12-05T20:35:08Z ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig lo11 inet 10.188.4.11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif114 destroy ifconfig: gif114: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif116 destroy ifconfig: gif116: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 destroy /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 inet6 ::1 delete /sbin/ifconfig lo12 inet 10.188.4.12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif124 destroy ifconfig: gif124: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif126 destroy ifconfig: gif126: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 destroy rm -f stamp-ifconfig # Create and configure loopback interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1/8 /sbin/ifconfig lo11 inet6 ::1/128 /sbin/ifconfig lo11 inet 10.188.4.11 alias /sbin/ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 alias /sbin/route -n -T 11 add -inet -host 10.188.4.12 127.0.0.1 add host 10.188.4.12: gateway 127.0.0.1 /sbin/route -n -T 11 add -inet6 -host fdd7:e83e:66bc:6::12 ::1 add host fdd7:e83e:66bc:6::12: gateway ::1 /sbin/ifconfig gif114 create rdomain 11 tunneldomain 11 /sbin/ifconfig gif114 tunnel 10.188.4.11 10.188.4.12 /sbin/ifconfig gif114 inet 10.188.44.11/32 10.188.44.12 /sbin/ifconfig gif114 inet6 fdd7:e83e:66bc:46::11 fdd7:e83e:66bc:46::12 /sbin/ifconfig gif116 create rdomain 11 tunneldomain 11 /sbin/ifconfig gif116 tunnel fdd7:e83e:66bc:6::11 fdd7:e83e:66bc:6::12 /sbin/ifconfig gif116 inet 10.188.64.11/32 10.188.64.12 /sbin/ifconfig gif116 inet6 fdd7:e83e:66bc:66::11 fdd7:e83e:66bc:66::12 /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1/8 /sbin/ifconfig lo12 inet6 ::1/128 /sbin/ifconfig lo12 inet 10.188.4.12 alias /sbin/ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 alias /sbin/route -n -T 12 add -inet -host 10.188.4.11 127.0.0.1 add host 10.188.4.11: gateway 127.0.0.1 /sbin/route -n -T 12 add -inet6 -host fdd7:e83e:66bc:6::11 ::1 add host fdd7:e83e:66bc:6::11: gateway ::1 /sbin/ifconfig gif124 create rdomain 12 tunneldomain 12 /sbin/ifconfig gif124 tunnel 10.188.4.12 10.188.4.11 /sbin/ifconfig gif124 inet 10.188.44.12/32 10.188.44.11 /sbin/ifconfig gif124 inet6 fdd7:e83e:66bc:46::12 fdd7:e83e:66bc:46::11 /sbin/ifconfig gif126 create rdomain 12 tunneldomain 12 /sbin/ifconfig gif126 tunnel fdd7:e83e:66bc:6::12 fdd7:e83e:66bc:6::11 /sbin/ifconfig gif126 inet 10.188.64.12/32 10.188.64.11 /sbin/ifconfig gif126 inet6 fdd7:e83e:66bc:66::12 fdd7:e83e:66bc:66::11 # Wait until IPv6 addresses are no longer tentative. for i in `jot 50`; do if ! { /sbin/ifconfig lo11; /sbin/ifconfig lo12; /sbin/ifconfig gif114; /sbin/ifconfig gif116; /sbin/ifconfig gif124; /sbin/ifconfig gif126; } | fgrep -q tentative; then break; fi; sleep .1; done ! { /sbin/ifconfig lo11; /sbin/ifconfig lo12; /sbin/ifconfig gif114; /sbin/ifconfig gif116; /sbin/ifconfig gif124; /sbin/ifconfig gif126; } | fgrep -q tentative ==== pfctl ==== # Create python include file containing the addresses. rm -f addr.py addr.py.tmp echo 'N1="11"' >>addr.py.tmp echo 'IF_N1="lo11"' >>addr.py.tmp echo 'DST_TUNNEL4_N1="10.188.4.12"' >>addr.py.tmp echo 'DST_TUNNEL6_N1="fdd7:e83e:66bc:6::12"' >>addr.py.tmp echo 'N2="12"' >>addr.py.tmp echo 'IF_N2="lo12"' >>addr.py.tmp echo 'DST_TUNNEL4_N2="10.188.4.11"' >>addr.py.tmp echo 'DST_TUNNEL6_N2="fdd7:e83e:66bc:6::11"' >>addr.py.tmp mv addr.py.tmp addr.py # Load the pf rules into the kernel. cat addr.py /usr/src/regress/sys/net/gif/pf.conf | /sbin/pfctl -n -f - cat addr.py /usr/src/regress/sys/net/gif/pf.conf | /sbin/pfctl -a regress -f - # ifconfig gif inet6 DAD created tunnel states based on old pf rules /sbin/pfctl -Fs 23 states cleared ==== run-ping-local-11 ==== # Ping localhost in routing domain 11. /sbin/ping -n -w 1 -c 1 -V 11 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.273 ms --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.273/0.273/0.273/0.000 ms ==== run-ping-src-11 ==== # Ping source address in local routing domain. SRC_TUNNEL4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.4.11 PING 10.188.4.11 (10.188.4.11): 56 data bytes 64 bytes from 10.188.4.11: icmp_seq=0 ttl=255 time=0.222 ms --- 10.188.4.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.222/0.222/0.222/0.000 ms ==== run-ping-dst-11 ==== # Ping destination address in other routing domain. DST_TUNNEL4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.4.12 PING 10.188.4.12 (10.188.4.12): 56 data bytes 64 bytes from 10.188.4.12: icmp_seq=0 ttl=255 time=0.335 ms --- 10.188.4.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.335/0.335/0.335/0.000 ms ==== run-ping-tunnel4-11 ==== # Ping IPv4 address through IPv4 tunnel. TUNNEL4_DST_ADDR4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.44.12 PING 10.188.44.12 (10.188.44.12): 56 data bytes 64 bytes from 10.188.44.12: icmp_seq=0 ttl=255 time=0.418 ms --- 10.188.44.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.418/0.418/0.418/0.000 ms ==== run-ping-tunnel6-11 ==== # Ping IPv4 address through IPv6 tunnel. TUNNEL6_DST_ADDR4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.64.12 PING 10.188.64.12 (10.188.64.12): 56 data bytes 64 bytes from 10.188.64.12: icmp_seq=0 ttl=255 time=0.525 ms --- 10.188.64.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.525/0.525/0.525/0.000 ms ==== run-ping6-local-11 ==== # Ping localhost in routing domain 11. /sbin/ping6 -n -w 1 -c 1 -V 11 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.468 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.468/0.468/0.468/0.000 ms ==== run-ping6-src-11 ==== # Ping source address in local routing domain. SRC_TUNNEL6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:6::11 PING fdd7:e83e:66bc:6::11 (fdd7:e83e:66bc:6::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::11: icmp_seq=0 hlim=64 time=0.467 ms --- fdd7:e83e:66bc:6::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.467/0.467/0.467/0.000 ms ==== run-ping6-dst-11 ==== # Ping destination address in other routing domain. DST_TUNNEL6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:6::12 PING fdd7:e83e:66bc:6::12 (fdd7:e83e:66bc:6::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::12: icmp_seq=0 hlim=64 time=0.481 ms --- fdd7:e83e:66bc:6::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.481/0.481/0.481/0.000 ms ==== run-ping6-tunnel4-11 ==== # Ping IPv6 address through IPv4 tunnel. TUNNEL4_DST_ADDR6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:46::12 PING fdd7:e83e:66bc:46::12 (fdd7:e83e:66bc:46::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:46::12: icmp_seq=0 hlim=64 time=0.562 ms --- fdd7:e83e:66bc:46::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.562/0.562/0.562/0.000 ms ==== run-ping6-tunnel6-11 ==== # Ping IPv6 address through IPv6 tunnel. TUNNEL6_DST_ADDR6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:66::12 PING fdd7:e83e:66bc:66::12 (fdd7:e83e:66bc:66::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:66::12: icmp_seq=0 hlim=64 time=0.514 ms --- fdd7:e83e:66bc:66::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.514/0.514/0.514/0.000 ms ==== run-ping-local-12 ==== # Ping localhost in routing domain 12. /sbin/ping -n -w 1 -c 1 -V 12 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.252 ms --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.252/0.252/0.252/0.000 ms ==== run-ping-src-12 ==== # Ping source address in local routing domain. SRC_TUNNEL4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.4.12 PING 10.188.4.12 (10.188.4.12): 56 data bytes 64 bytes from 10.188.4.12: icmp_seq=0 ttl=255 time=0.337 ms --- 10.188.4.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.337/0.337/0.337/0.000 ms ==== run-ping-dst-12 ==== # Ping destination address in other routing domain. DST_TUNNEL4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.4.11 PING 10.188.4.11 (10.188.4.11): 56 data bytes 64 bytes from 10.188.4.11: icmp_seq=0 ttl=255 time=0.320 ms --- 10.188.4.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.320/0.320/0.320/0.000 ms ==== run-ping-tunnel4-12 ==== # Ping IPv4 address through IPv4 tunnel. TUNNEL4_DST_ADDR4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.44.11 PING 10.188.44.11 (10.188.44.11): 56 data bytes 64 bytes from 10.188.44.11: icmp_seq=0 ttl=255 time=0.400 ms --- 10.188.44.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.400/0.400/0.400/0.000 ms ==== run-ping-tunnel6-12 ==== # Ping IPv4 address through IPv6 tunnel. TUNNEL6_DST_ADDR4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.64.11 PING 10.188.64.11 (10.188.64.11): 56 data bytes 64 bytes from 10.188.64.11: icmp_seq=0 ttl=255 time=0.458 ms --- 10.188.64.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.458/0.458/0.458/0.000 ms ==== run-ping6-local-12 ==== # Ping localhost in routing domain 12. /sbin/ping6 -n -w 1 -c 1 -V 12 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.494 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.494/0.494/0.494/0.000 ms ==== run-ping6-src-12 ==== # Ping source address in local routing domain. SRC_TUNNEL6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:6::12 PING fdd7:e83e:66bc:6::12 (fdd7:e83e:66bc:6::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::12: icmp_seq=0 hlim=64 time=0.444 ms --- fdd7:e83e:66bc:6::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.444/0.444/0.444/0.000 ms ==== run-ping6-dst-12 ==== # Ping destination address in other routing domain. DST_TUNNEL6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:6::11 PING fdd7:e83e:66bc:6::11 (fdd7:e83e:66bc:6::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::11: icmp_seq=0 hlim=64 time=0.497 ms --- fdd7:e83e:66bc:6::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.497/0.497/0.497/0.000 ms ==== run-ping6-tunnel4-12 ==== # Ping IPv6 address through IPv4 tunnel. TUNNEL4_DST_ADDR6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:46::11 PING fdd7:e83e:66bc:46::11 (fdd7:e83e:66bc:46::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:46::11: icmp_seq=0 hlim=64 time=0.557 ms --- fdd7:e83e:66bc:46::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.557/0.557/0.557/0.000 ms ==== run-ping6-tunnel6-12 ==== # Ping IPv6 address through IPv6 tunnel. TUNNEL6_DST_ADDR6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:66::11 PING fdd7:e83e:66bc:66::11 (fdd7:e83e:66bc:66::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:66::11: icmp_seq=0 hlim=64 time=0.515 ms --- fdd7:e83e:66bc:66::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.515/0.515/0.515/0.000 ms ==== unconfig ==== /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1 delete /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig lo11 inet 10.188.4.11 delete /sbin/ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 delete /sbin/ifconfig gif114 destroy /sbin/ifconfig gif116 destroy /sbin/ifconfig lo11 destroy /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1 delete /sbin/ifconfig lo12 inet6 ::1 delete /sbin/ifconfig lo12 inet 10.188.4.12 delete /sbin/ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 delete /sbin/ifconfig gif124 destroy /sbin/ifconfig gif126 destroy /sbin/ifconfig lo12 destroy rm -f stamp-ifconfig PASS sys/net/gif Duration 0m10.83s