START	sys/netinet6/srcaddr	2024-10-06T01:57:55Z

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

==== run-linklocal ====
ifconfig vether1 destroy 2>/dev/null || true
ifconfig lo1 destroy 2>/dev/null || true
ifconfig vether1 inet6 rdomain 1 eui64 up
sh -c "ifconfig vether1 | awk '/inet6/ {print \$2}' > vether1_ll"
ifconfig lo1 inet rdomain 1 127.0.0.1/8 up
ifconfig lo1 inet6 rdomain 1 eui64
route -T 1 exec ./srcaddr fe80::1%vether1 |  diff -up vether1_ll /dev/stdin

==== cleanup ====
ifconfig vether1 destroy 2>/dev/null || true
ifconfig lo1 destroy 2>/dev/null || true

PASS	sys/netinet6/srcaddr	Duration 0m02.88s