START sys/netinet/mcast 2024-10-29T05:37:18Z ssh -t ot2 true Pseudo-terminal will not be allocated because stdin is not a terminal. ssh -t ot3 true Pseudo-terminal will not be allocated because stdin is not a terminal. ==== run-localhost ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcsend.c cc -o mcsend mcsend.o cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcrecv.c cc -o mcrecv mcrecv.o cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcroute.c cc -o mcroute mcroute.o # send over localhost interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 127.0.0.1 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 127.0.0.1 -m '26413' grep '> 26413$' send.log >>> 26413 grep '< 26413$' recv.log <<< 26413 ==== run-localhost-loop ==== # explicitly enable loop back on multicast interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 127.0.0.1 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 127.0.0.1 -l 1 -m '2230' grep '> 2230$' send.log >>> 2230 grep '< 2230$' recv.log <<< 2230 ==== run-localhost-loop0 ==== # disable loop back on multicast interface, must fail /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 127.0.0.1 -n 1 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 127.0.0.1 -l 0 -m '23959' grep '> 23959$' send.log >>> 23959 ! grep '< ' recv.log ==== run-localhost-ttl0 ==== # send over localhost interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 127.0.0.1 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 127.0.0.1 -m '32239' -t 0 grep '> 32239$' send.log >>> 32239 grep '< 32239$' recv.log <<< 32239 ==== run-localhost-local ==== # send over localhost interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -g 224.0.0.123 -i 127.0.0.1 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -g 224.0.0.123 -i 127.0.0.1 -m '9920' -t 0 grep '> 9920$' send.log >>> 9920 grep '< 9920$' recv.log <<< 9920 ==== run-localaddr ==== # send over a local physical interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 10.188.81.21 -m '25134' grep '> 25134$' send.log >>> 25134 grep '< 25134$' recv.log <<< 25134 ==== run-localaddr-loop0 ==== # send over physical interface to loopback, ttl is 0 /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -n 1 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 10.188.81.21 -l 0 -m '14738' grep '> 14738$' send.log >>> 14738 ! grep '< ' recv.log ==== run-localaddr-ttl0 ==== # send over physical interface to loopback, ttl is 0 /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -i 10.188.81.21 -m '18353' -t 0 grep '> 18353$' send.log >>> 18353 grep '< 18353$' recv.log <<< 18353 ==== run-localaddr-local ==== # send over physical interface to loopback, ttl is 0 /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -g 224.0.0.123 -i 10.188.81.21 -r 5 -- /usr/src/regress/sys/netinet/mcast/obj/mcsend -f send.log -g 224.0.0.123 -i 10.188.81.21 -m '7660' -t 0 grep '> 7660$' send.log >>> 7660 grep '< 7660$' recv.log <<< 7660 ==== run-remoteaddr ==== ssh ot2 make -C /usr/src/regress/sys/netinet/mcast mcsend mcrecv mcroute cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcsend.c cc -o mcsend mcsend.o cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcrecv.c cc -o mcrecv mcrecv.o cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcroute.c cc -o mcroute mcroute.o date >stamp-remote-build # send over a local physical interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -r 5 -- ssh ot2 /usr/src/regress/sys/netinet/mcast/obj/mcsend -f /usr/src/regress/sys/netinet/mcast/obj/send.log -i 10.188.81.22 -m '23769' grep '< 23769$' recv.log <<< 23769 ==== run-remoteaddr-loop0 ==== # send over a local physical interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -r 5 -- ssh ot2 /usr/src/regress/sys/netinet/mcast/obj/mcsend -f /usr/src/regress/sys/netinet/mcast/obj/send.log -i 10.188.81.22 -l 0 -m '8209' grep '< 8209$' recv.log <<< 8209 ==== run-remoteaddr-ttl0 ==== # send over a local physical interface /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -n 2 -- ssh ot2 /usr/src/regress/sys/netinet/mcast/obj/mcsend -f /usr/src/regress/sys/netinet/mcast/obj/send.log -i 10.188.81.22 -m '26407' -t 0 ! grep '< ' recv.log ==== run-forward ==== ssh ot3 make -C /usr/src/regress/sys/netinet/mcast mcsend mcrecv mcroute cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcsend.c cc -o mcsend mcsend.o cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcrecv.c cc -o mcrecv mcrecv.o cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/mcast/mcroute.c cc -o mcroute mcroute.o date >stamp-target-build # start multicast router, start receiver, start sender ssh ot2 pkill mcroute mc6route || true ssh ot2 /usr/src/regress/sys/netinet/mcast/obj/mcroute -f /usr/src/regress/sys/netinet/mcast/obj/route.log -b -i 10.188.82.22 -o 10.188.81.22 -r 5 /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -r 5 -- ssh ot3 /usr/src/regress/sys/netinet/mcast/obj/mcsend -f /usr/src/regress/sys/netinet/mcast/obj/send.log -i 10.188.82.23 -l 0 -m '12918' -t 2 grep '< 12918$' recv.log <<< 12918 ==== run-forward-ttl1 ==== # try to get ttl 1 over multicast router, must fail ssh ot2 pkill mcroute mc6route || true ssh ot2 /usr/src/regress/sys/netinet/mcast/obj/mcroute -f /usr/src/regress/sys/netinet/mcast/obj/route.log -b -i 10.188.82.22 -o 10.188.81.22 -n 3 /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -i 10.188.81.21 -n 2 -- ssh ot3 /usr/src/regress/sys/netinet/mcast/obj/mcsend -f /usr/src/regress/sys/netinet/mcast/obj/send.log -i 10.188.82.23 -l 0 -m '16274' -t 1 ! grep '< ' recv.log ==== run-forward-local ==== # try to get local multicast group over router, must fail ssh ot2 pkill mcroute mc6route || true ssh ot2 /usr/src/regress/sys/netinet/mcast/obj/mcroute -f /usr/src/regress/sys/netinet/mcast/obj/route.log -b -g 224.0.0.123 -i 10.188.82.22 -o 10.188.81.22 -n 3 /usr/src/regress/sys/netinet/mcast/obj/mcrecv -f recv.log -g 224.0.0.123 -i 10.188.81.21 -n 2 -- ssh ot3 /usr/src/regress/sys/netinet/mcast/obj/mcsend -f /usr/src/regress/sys/netinet/mcast/obj/send.log -g 224.0.0.123 -i 10.188.82.23 -l 0 -m '21858' -t 2 ! grep '< ' recv.log PASS sys/netinet/mcast Duration 0m23.90s