==== run-ether-addr ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 ' ifconfig.out inet 10.188.254.74 netmask 0xff000000 broadcast 10.255.255.255 ==== run-ether-inet ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet 10.188.254.74 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 ' ifconfig.out inet 10.188.254.74 netmask 0xff000000 broadcast 10.255.255.255 ==== run-ether-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74 netmask 255.255.255.0 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-contiguous-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74 netmask 255.255.255.0 doas -n /sbin/ifconfig vether99 10.188.254.74 delete ! doas -n /sbin/ifconfig vether99 10.188.254.74 netmask 255.255.255.64 ifconfig: 255.255.255.64: non-contiguous mask /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.74 ' ifconfig.out ==== run-ether-len ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74/24 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-prefixlen ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74 prefixlen 24 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-hexmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74 netmask 0xffffff00 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-broadcast ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.74/24 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 .* broadcast 10.188.254.255$' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-replace ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.1 ' ifconfig.out grep 'inet 10.188.254.2 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-duplicate ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.1/24 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 ' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 10.188.254.255 grep -c 'inet ' ifconfig.out | grep -q 1 ==== run-ether-host ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.1/32 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 netmask 0xffffffff$' ifconfig.out inet 10.188.254.1 netmask 0xffffffff grep -c 'inet ' ifconfig.out | grep -q 1 ==== run-ether-alias ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 ' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 10.188.254.255 grep 'inet 10.188.254.2 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-alias-duplicate ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.1/24 alias /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 ' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 10.188.254.255 grep -c 'inet ' ifconfig.out | grep -q 1 ==== run-ether-replace-first ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias doas -n /sbin/ifconfig vether99 10.188.254.3/24 /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.1 ' ifconfig.out grep 'inet 10.188.254.2 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 grep 'inet 10.188.254.3 ' ifconfig.out inet 10.188.254.3 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-alias-host ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.1/32 alias /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 netmask 0xffffffff$' ifconfig.out inet 10.188.254.1 netmask 0xffffffff grep -c 'inet ' ifconfig.out | grep -q 1 ==== run-ether-change-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias doas -n /sbin/ifconfig vether99 10.188.254.1/32 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 netmask 0xffffffff$' ifconfig.out inet 10.188.254.1 netmask 0xffffffff grep 'inet 10.188.254.2 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 grep -c 'inet ' ifconfig.out | grep -q 2 ==== run-ether-delete-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias # XXX ifconfig deletes .1 and changes .2 netmask doas -n /sbin/ifconfig vether99 10.188.254.2/32 /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.1 ' ifconfig.out grep 'inet 10.188.254.2 netmask 0xffffffff$' ifconfig.out inet 10.188.254.2 netmask 0xffffffff grep -c 'inet ' ifconfig.out | grep -q 1 ==== run-ether-alias-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias doas -n /sbin/ifconfig vether99 10.188.254.2/32 alias /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 ' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 10.188.254.255 grep 'inet 10.188.254.2 netmask 0xffffffff$' ifconfig.out inet 10.188.254.2 netmask 0xffffffff grep -c 'inet 10.188.254.2 ' ifconfig.out | grep -q 1 ==== run-ether-delete ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.1 delete /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet ' ifconfig.out ==== run-ether-delete-first ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias doas -n /sbin/ifconfig vether99 10.188.254.1 delete /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.1 ' ifconfig.out grep 'inet 10.188.254.2 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-delete-second ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 10.188.254.1/24 doas -n /sbin/ifconfig vether99 10.188.254.2/24 alias doas -n /sbin/ifconfig vether99 10.188.254.2 delete /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 ' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 10.188.254.255 ! grep 'inet 10.188.254.2 ' ifconfig.out ==== run-ppp-addr ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.74 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 ' ifconfig.out inet 10.188.253.74 --> 0.0.0.0 netmask 0xff000000 ==== run-ppp-inet ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet 10.188.253.74 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 ' ifconfig.out inet 10.188.253.74 --> 0.0.0.0 netmask 0xff000000 ==== run-ppp-netmask ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.74 netmask 255.255.255.0 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 .* netmask 0xffffff00$' ifconfig.out inet 10.188.253.74 --> 0.0.0.0 netmask 0xffffff00 ==== run-ppp-len ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.74/24 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 .* netmask 0xffffff00$' ifconfig.out inet 10.188.253.74 --> 0.0.0.0 netmask 0xffffff00 ==== run-ppp-prefixlen ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.74 prefixlen 24 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 .* netmask 0xffffff00$' ifconfig.out inet 10.188.253.74 --> 0.0.0.0 netmask 0xffffff00 ==== run-ppp-destination ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.74/24 10.188.253.75 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 --> 10.188.253.75 ' ifconfig.out inet 10.188.253.74 --> 10.188.253.75 netmask 0xffffff00 ==== run-ppp-replace ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.1/24 10.188.253.75 doas -n /sbin/ifconfig tun99 10.188.253.2/24 10.188.253.75 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.2 --> 10.188.253.75 ' ifconfig.out inet 10.188.253.2 --> 10.188.253.75 netmask 0xffffff00 ! grep 'inet 10.188.253.1 --> 10.188.253.75 ' ifconfig.out ==== run-ppp-alias ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 10.188.253.1/24 10.188.253.75 doas -n /sbin/ifconfig tun99 10.188.253.2/24 10.188.253.75 alias /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.1 --> 10.188.253.75 ' ifconfig.out inet 10.188.253.1 --> 10.188.253.75 netmask 0xffffff00 grep 'inet 10.188.253.2 --> 10.188.253.75 ' ifconfig.out inet 10.188.253.2 --> 10.188.253.75 netmask 0xffffff00 ==== run-ether-ifaddr-set ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sbin/ifconfig/ifaddr.c cc -o ifaddr ifaddr.o doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.74 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 ' ifconfig.out inet 10.188.254.74 netmask 0xff000000 broadcast 10.255.255.255 ==== run-ether-ifaddr-get ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.74 ./ifaddr vether99 >ifconfig.out grep 'inet 10.188.254.74 ' ifconfig.out inet 10.188.254.74 netmask 0xff000000 broadcast 10.255.255.255 ==== run-ether-ifaddr-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.74 netmask 255.255.255.0 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.255.255.255 ==== run-ether-ifaddr-contiguous-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.74 netmask 255.255.255.0 doas -n ./ifaddr vether99 10.188.254.74 delete ! doas -n ./ifaddr vether99 10.188.254.74 netmask 255.255.255.64 ifaddr: SIOCSIFNETMASK: Invalid argument /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.74 netmask 0xffffff' ifconfig.out ==== run-ether-ifaddr-prefixlen ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.74/24 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.74 netmask 0xffffff00 broadcast 10.255.255.255 ==== run-ppp-ifaddr-destination ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n ./ifaddr tun99 10.188.253.74 10.188.253.75 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.74 --> 10.188.253.75 ' ifconfig.out inet 10.188.253.74 --> 10.188.253.75 netmask 0xff000000 ==== run-ether-ifaddr-broadcast ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.74 broadcast 10.188.254.255 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.74 .* broadcast 10.188.254.255$' ifconfig.out inet 10.188.254.74 netmask 0xff000000 broadcast 10.188.254.255 ==== run-ether-ifaddr-alias ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.1/24 doas -n ./ifaddr vether99 10.188.254.2/24 alias /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 ' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 10.255.255.255 grep 'inet 10.188.254.2 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-ifaddr-change-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.1/24 doas -n ./ifaddr vether99 10.188.254.2/24 alias doas -n ./ifaddr vether99 netmask 255.255.255.255 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 netmask 0xffffffff ' ifconfig.out inet 10.188.254.1 netmask 0xffffffff broadcast 10.255.255.255 grep 'inet 10.188.254.2 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ppp-ifaddr-change-destination ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n ./ifaddr tun99 10.188.253.1 10.188.253.11 doas -n ./ifaddr tun99 10.188.253.2 10.188.253.12 alias doas -n ./ifaddr tun99 ipdst 10.188.253.13 /sbin/ifconfig tun99 >ifconfig.out grep 'inet 10.188.253.1 --> 10.188.253.13 ' ifconfig.out inet 10.188.253.1 --> 10.188.253.13 netmask 0xff000000 grep 'inet 10.188.253.2 --> 10.188.253.12 ' ifconfig.out inet 10.188.253.2 --> 10.188.253.12 netmask 0xff000000 ==== run-ether-ifaddr-change-broadcast ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.1/24 broadcast 10.188.254.255 doas -n ./ifaddr vether99 10.188.254.2/24 broadcast 10.188.254.255 alias doas -n ./ifaddr vether99 broadcast 255.255.255.255 /sbin/ifconfig vether99 >ifconfig.out grep 'inet 10.188.254.1 .* broadcast 255.255.255.255$' ifconfig.out inet 10.188.254.1 netmask 0xffffff00 broadcast 255.255.255.255 grep 'inet 10.188.254.2 .* broadcast 10.188.254.255$' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.254.255 ==== run-ether-ifaddr-duplicate ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n ./ifaddr vether99 10.188.254.1/24 doas -n ./ifaddr vether99 10.188.254.2/16 alias # XXX replace the first address and create two identical addresses doas -n ./ifaddr vether99 10.188.254.2/24 /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet 10.188.254.1 ' ifconfig.out grep 'inet 10.188.254.2 netmask 0xffffff00 ' ifconfig.out inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.255.255 inet 10.188.254.2 netmask 0xffffff00 broadcast 10.188.255.255 grep -c 'inet ' ifconfig.out | grep -q 2 ==== run-ether-inet6-eui64 ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 eui64 /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fe80::[0-9a-f:]*ff:fe[0-9a-f:]*%vether99 ' ifconfig.out inet6 fe80::fce1:baff:fedf:8e11%vether99 prefixlen 64 scopeid 0x2f ==== run-ether-inet6-addr ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::74 ' ifconfig.out inet6 fdd7:e83e:66bc:254::74 prefixlen 64 tentative # setting an address creates eui64 automatically grep 'inet6 fe80::[0-9a-f:]*ff:fe[0-9a-f:]*%vether99 ' ifconfig.out inet6 fe80::fce1:baff:fed0:7149%vether99 prefixlen 64 scopeid 0x30 ==== run-ether-inet6-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 netmask ffff:ffff:ffff:ffff:ffff:: /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::74 prefixlen 80 ' ifconfig.out inet6 fdd7:e83e:66bc:254::74 prefixlen 80 tentative ==== run-ether-inet6-contiguous-netmask ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 netmask ffff:ffff:ffff:ffff:ffff:: doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 delete ! doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 netmask ffff:ffff:ffff:ffff:ffff:4000:: ifconfig: SIOCAIFADDR: Invalid argument /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet6 fdd7:e83e:66bc:254::74 ' ifconfig.out ==== run-ether-inet6-contiguous-gap ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 netmask ffff:: doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 delete ! doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 netmask ffff::ff00:8 ifconfig: SIOCAIFADDR: Invalid argument /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet6 fdd7:e83e:66bc:254::74 ' ifconfig.out ==== run-ether-inet6-len ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74/80 /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::74 prefixlen 80 ' ifconfig.out inet6 fdd7:e83e:66bc:254::74 prefixlen 80 tentative ==== run-ether-inet6-prefixlen ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::74 prefixlen 80 /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::74 prefixlen 80 ' ifconfig.out inet6 fdd7:e83e:66bc:254::74 prefixlen 80 tentative ==== run-ether-inet6-noreplace ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::2 /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::1 ' ifconfig.out inet6 fdd7:e83e:66bc:254::1 prefixlen 64 tentative grep 'inet6 fdd7:e83e:66bc:254::2 ' ifconfig.out inet6 fdd7:e83e:66bc:254::2 prefixlen 64 tentative ==== run-ether-inet6-duplicate ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::1 ' ifconfig.out inet6 fdd7:e83e:66bc:254::1 prefixlen 64 tentative grep -c 'inet6 fdd7:e83e:66bc:254::' ifconfig.out | grep -q 1 ==== run-ether-inet6-host ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1/128 # changing netmask of an exisintg address is not allowed ! doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1/64 ifconfig: SIOCAIFADDR: Invalid argument /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::1 prefixlen 128 ' ifconfig.out inet6 fdd7:e83e:66bc:254::1 prefixlen 128 tentative grep -c 'inet6 fdd7:e83e:66bc:254::' ifconfig.out | grep -q 1 ==== run-ether-inet6-alias ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::2 alias /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::1 ' ifconfig.out inet6 fdd7:e83e:66bc:254::1 prefixlen 64 tentative grep 'inet6 fdd7:e83e:66bc:254::2 ' ifconfig.out inet6 fdd7:e83e:66bc:254::2 prefixlen 64 tentative ==== run-ether-inet6-delete ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 delete /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet6 fdd7:e83e:66bc:254::' ifconfig.out ==== run-ether-inet6-delete-first ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::2 alias doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 delete /sbin/ifconfig vether99 >ifconfig.out ! grep 'inet6 fdd7:e83e:66bc:254::1 ' ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::2 ' ifconfig.out inet6 fdd7:e83e:66bc:254::2 prefixlen 64 tentative ==== run-ether-inet6-delete-second ==== doas -n /sbin/ifconfig vether99 destroy 2>/dev/null || true doas -n /sbin/ifconfig vether99 create doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::1 doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::2 alias doas -n /sbin/ifconfig vether99 inet6 fdd7:e83e:66bc:254::2 delete /sbin/ifconfig vether99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:254::1 ' ifconfig.out inet6 fdd7:e83e:66bc:254::1 prefixlen 64 tentative ! grep 'inet6 fdd7:e83e:66bc:254::2 ' ifconfig.out ==== run-ppp-inet6-eui64 ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet6 eui64 /sbin/ifconfig tun99 >ifconfig.out grep 'inet6 fe80::[0-9a-f:]*ff:fe[0-9a-f:]*%tun99 ' ifconfig.out inet6 fe80::2ad2:44ff:fea1:8294%tun99 --> prefixlen 64 scopeid 0x3d ==== run-ppp-inet6-addr ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::74 /sbin/ifconfig tun99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:253::74 ' ifconfig.out inet6 fdd7:e83e:66bc:253::74 --> prefixlen 64 tentative # setting an address creates eui64 automatically grep 'inet6 fe80::[0-9a-f:]*ff:fe[0-9a-f:]*%tun99 ' ifconfig.out inet6 fe80::2ad2:44ff:fea1:8294%tun99 --> prefixlen 64 scopeid 0x3e ==== run-ppp-inet6-len ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::74/80 /sbin/ifconfig tun99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:253::74 .* prefixlen 80 ' ifconfig.out inet6 fdd7:e83e:66bc:253::74 --> prefixlen 80 tentative ==== run-ppp-inet6-destination ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::74 fdd7:e83e:66bc:253::75 /sbin/ifconfig tun99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:253::74 --> fdd7:e83e:66bc:253::75 ' ifconfig.out inet6 fdd7:e83e:66bc:253::74 --> fdd7:e83e:66bc:253::75 prefixlen 128 tentative ==== run-ppp-inet6-noreplace ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::1 fdd7:e83e:66bc:253::75 doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::2 fdd7:e83e:66bc:253::75 /sbin/ifconfig tun99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:253::1 --> fdd7:e83e:66bc:253::75 ' ifconfig.out inet6 fdd7:e83e:66bc:253::1 --> fdd7:e83e:66bc:253::75 prefixlen 128 tentative grep 'inet6 fdd7:e83e:66bc:253::2 --> fdd7:e83e:66bc:253::75 ' ifconfig.out inet6 fdd7:e83e:66bc:253::2 --> fdd7:e83e:66bc:253::75 prefixlen 128 tentative ==== run-ppp-inet6-alias ==== doas -n /sbin/ifconfig tun99 destroy 2>/dev/null || true doas -n /sbin/ifconfig tun99 create doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::1 fdd7:e83e:66bc:253::75 doas -n /sbin/ifconfig tun99 inet6 fdd7:e83e:66bc:253::2 fdd7:e83e:66bc:253::75 alias /sbin/ifconfig tun99 >ifconfig.out grep 'inet6 fdd7:e83e:66bc:253::1 --> fdd7:e83e:66bc:253::75 ' ifconfig.out inet6 fdd7:e83e:66bc:253::1 --> fdd7:e83e:66bc:253::75 prefixlen 128 tentative grep 'inet6 fdd7:e83e:66bc:253::2 --> fdd7:e83e:66bc:253::75 ' ifconfig.out inet6 fdd7:e83e:66bc:253::2 --> fdd7:e83e:66bc:253::75 prefixlen 128 tentative ==== cleanup ==== doas -n /sbin/ifconfig vether99 destroy || true doas -n /sbin/ifconfig tun99 destroy || true