==== run-localhost ==== doas -n ifconfig vether1 destroy 2>/dev/null || true doas -n ifconfig lo35 destroy 2>/dev/null || true doas -n ifconfig vether1 inet6 rdomain 35 eui64 up sh -c "ifconfig vether1 | awk '/inet6/ {print \$2}' > vether1_ll" doas -n ifconfig lo35 inet rdomain 35 127.0.0.1/8 up doas -n ifconfig lo35 inet6 rdomain 35 eui64 cc -O2 -pipe -g -MD -MP -c /home/src/regress/sys/netinet6/srcaddr/srcaddr.c cc -o srcaddr srcaddr.o route -T 35 exec ./srcaddr ::1 | diff -up /home/src/regress/sys/netinet6/srcaddr/localhost.ok /dev/stdin ==== run-linklocal ==== doas -n ifconfig vether1 destroy 2>/dev/null || true doas -n ifconfig lo35 destroy 2>/dev/null || true doas -n ifconfig vether1 inet6 rdomain 35 eui64 up sh -c "ifconfig vether1 | awk '/inet6/ {print \$2}' > vether1_ll" doas -n ifconfig lo35 inet rdomain 35 127.0.0.1/8 up doas -n ifconfig lo35 inet6 rdomain 35 eui64 route -T 35 exec ./srcaddr fe80::1%vether1 | diff -up vether1_ll /dev/stdin ==== cleanup ==== doas -n ifconfig vether1 destroy 2>/dev/null || true doas -n ifconfig lo35 destroy 2>/dev/null || true