START sys/net/gif 2021-01-13T20:55:24Z ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== # Destroy interfaces, keep lo as routing domain cannot be destroyed. ifconfig lo11 rdomain 11 ifconfig lo11 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) ifconfig lo11 inet6 ::1 delete ifconfig lo11 inet 10.188.4.11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) ifconfig gif114 destroy ifconfig: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) ifconfig gif116 destroy ifconfig: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) ifconfig lo12 rdomain 12 ifconfig lo12 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) ifconfig lo12 inet6 ::1 delete ifconfig lo12 inet 10.188.4.12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) ifconfig gif124 destroy ifconfig: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) ifconfig gif126 destroy ifconfig: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) rm -f stamp-ifconfig # Create and configure loopback interfaces. ifconfig lo11 rdomain 11 ifconfig lo11 inet 127.0.0.1/8 ifconfig lo11 inet6 ::1/128 ifconfig lo11 inet 10.188.4.11 alias ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 alias 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 route -n -T 11 add -inet6 -host fdd7:e83e:66bc:6::12 ::1 add host fdd7:e83e:66bc:6::12: gateway ::1 ifconfig gif114 create rdomain 11 tunneldomain 11 ifconfig gif114 tunnel 10.188.4.11 10.188.4.12 ifconfig gif114 inet 10.188.44.11/32 10.188.44.12 ifconfig gif114 inet6 fdd7:e83e:66bc:46::11 fdd7:e83e:66bc:46::12 ifconfig gif116 create rdomain 11 tunneldomain 11 ifconfig gif116 tunnel fdd7:e83e:66bc:6::11 fdd7:e83e:66bc:6::12 ifconfig gif116 inet 10.188.64.11/32 10.188.64.12 ifconfig gif116 inet6 fdd7:e83e:66bc:66::11 fdd7:e83e:66bc:66::12 ifconfig lo12 rdomain 12 ifconfig lo12 inet 127.0.0.1/8 ifconfig lo12 inet6 ::1/128 ifconfig lo12 inet 10.188.4.12 alias ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 alias 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 route -n -T 12 add -inet6 -host fdd7:e83e:66bc:6::11 ::1 add host fdd7:e83e:66bc:6::11: gateway ::1 ifconfig gif124 create rdomain 12 tunneldomain 12 ifconfig gif124 tunnel 10.188.4.12 10.188.4.11 ifconfig gif124 inet 10.188.44.12/32 10.188.44.11 ifconfig gif124 inet6 fdd7:e83e:66bc:46::12 fdd7:e83e:66bc:46::11 ifconfig gif126 create rdomain 12 tunneldomain 12 ifconfig gif126 tunnel fdd7:e83e:66bc:6::12 fdd7:e83e:66bc:6::11 ifconfig gif126 inet 10.188.64.12/32 10.188.64.11 ifconfig gif126 inet6 fdd7:e83e:66bc:66::12 fdd7:e83e:66bc:66::11 # Wait until DAD for inet6 tunnel addresses has finished. sleep 1 ==== 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 | pfctl -a regress -f - # ifconfig gif inet6 DAD created tunnel states based on old pf rules /sbin/pfctl -Fs 22 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.187 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.187/0.187/0.187/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.188 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.188/0.188/0.188/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.241 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.241/0.241/0.241/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.278 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.278/0.278/0.278/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.295 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.295/0.295/0.295/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.278 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.278/0.278/0.278/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.279 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.279/0.279/0.279/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.298 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.298/0.298/0.298/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.349 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.349/0.349/0.349/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.381 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.381/0.381/0.381/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.227 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.227/0.227/0.227/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.221 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.221/0.221/0.221/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.201 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.201/0.201/0.201/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.248 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.248/0.248/0.248/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.308 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.308/0.308/0.308/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.290 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.290/0.290/0.290/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.277 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.277/0.277/0.277/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.301 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.301/0.301/0.301/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.351 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.351/0.351/0.351/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.371 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.371/0.371/0.371/0.000 ms ==== unconfig ==== # Destroy interfaces, keep lo as routing domain cannot be destroyed. ifconfig lo11 rdomain 11 ifconfig lo11 inet 127.0.0.1 delete ifconfig lo11 inet6 ::1 delete ifconfig lo11 inet 10.188.4.11 delete ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 delete ifconfig gif114 destroy ifconfig gif116 destroy ifconfig lo12 rdomain 12 ifconfig lo12 inet 127.0.0.1 delete ifconfig lo12 inet6 ::1 delete ifconfig lo12 inet 10.188.4.12 delete ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 delete ifconfig gif124 destroy ifconfig gif126 destroy rm -f stamp-ifconfig PASS sys/net/gif Duration 0m06.14s