START sys/netinet/mcast 2023-12-25T04:59:01Z 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 '25225' grep '> 25225$' send.log >>> 25225 grep '< 25225$' recv.log <<< 25225 ==== 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 '12069' grep '> 12069$' send.log >>> 12069 grep '< 12069$' recv.log <<< 12069 ==== 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 '28824' grep '> 28824$' send.log >>> 28824 ! 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 '19404' -t 0 grep '> 19404$' send.log >>> 19404 grep '< 19404$' recv.log <<< 19404 ==== 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 '29937' -t 0 grep '> 29937$' send.log >>> 29937 grep '< 29937$' recv.log <<< 29937 ==== 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 '28690' grep '> 28690$' send.log >>> 28690 grep '< 28690$' recv.log <<< 28690 ==== 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 '9461' grep '> 9461$' send.log >>> 9461 ! 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 '19736' -t 0 grep '> 19736$' send.log >>> 19736 grep '< 19736$' recv.log <<< 19736 ==== 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 '910' -t 0 grep '> 910$' send.log >>> 910 grep '< 910$' recv.log <<< 910 ==== 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 '7868' grep '< 7868$' recv.log <<< 7868 ==== 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 '29350' grep '< 29350$' recv.log <<< 29350 ==== 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 '675' -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 '6501' -t 2 grep '< 6501$' recv.log <<< 6501 ==== 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 '10498' -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 '1959' -t 2 ! grep '< ' recv.log PASS sys/netinet/mcast Duration 0m27.92s