START sys/netinet/mcast 2024-11-24T05:12:06Z 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 '17670' grep '> 17670$' send.log >>> 17670 grep '< 17670$' recv.log <<< 17670 ==== 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 '22570' grep '> 22570$' send.log >>> 22570 grep '< 22570$' recv.log <<< 22570 ==== 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 '6239' grep '> 6239$' send.log >>> 6239 ! 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 '13009' -t 0 grep '> 13009$' send.log >>> 13009 grep '< 13009$' recv.log <<< 13009 ==== 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 '26164' -t 0 grep '> 26164$' send.log >>> 26164 grep '< 26164$' recv.log <<< 26164 ==== 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 '14349' grep '> 14349$' send.log >>> 14349 grep '< 14349$' recv.log <<< 14349 ==== 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 '30899' grep '> 30899$' send.log >>> 30899 ! 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 '18730' -t 0 grep '> 18730$' send.log >>> 18730 grep '< 18730$' recv.log <<< 18730 ==== 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 '5685' -t 0 grep '> 5685$' send.log >>> 5685 grep '< 5685$' recv.log <<< 5685 ==== 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 '25810' grep '< 25810$' recv.log <<< 25810 ==== 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 '8623' grep '< 8623$' recv.log <<< 8623 ==== 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 '12259' -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 '22315' -t 2 grep '< 22315$' recv.log <<< 22315 ==== 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 '14843' -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 '17118' -t 2 ! grep '< ' recv.log PASS sys/netinet/mcast Duration 0m24.10s