START sys/netinet/mcast 2024-10-25T04:46:47Z 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 '14814' grep '> 14814$' send.log >>> 14814 grep '< 14814$' recv.log <<< 14814 ==== 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 '8625' grep '> 8625$' send.log >>> 8625 grep '< 8625$' recv.log <<< 8625 ==== 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 '12738' grep '> 12738$' send.log >>> 12738 ! 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 '16070' -t 0 grep '> 16070$' send.log >>> 16070 grep '< 16070$' recv.log <<< 16070 ==== 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 '19460' -t 0 grep '> 19460$' send.log >>> 19460 grep '< 19460$' recv.log <<< 19460 ==== 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 '255' grep '> 255$' send.log >>> 255 grep '< 255$' recv.log <<< 255 ==== 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 '19532' grep '> 19532$' send.log >>> 19532 ! 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 '23570' -t 0 grep '> 23570$' send.log >>> 23570 grep '< 23570$' recv.log <<< 23570 ==== 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 '5563' -t 0 grep '> 5563$' send.log >>> 5563 grep '< 5563$' recv.log <<< 5563 ==== 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 '2603' grep '< 2603$' recv.log <<< 2603 ==== 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 '12714' grep '< 12714$' recv.log <<< 12714 ==== 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 '23440' -t 0 ! grep '< ' recv.log ==== run-forward ==== ssh ot3 make -C /usr/src/regress/sys/netinet/mcast mcsend mcrecv mcroute `mcsend' is up to date. `mcrecv' is up to date. `mcroute' is up to date. 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 '19016' -t 2 grep '< 19016$' recv.log <<< 19016 ==== 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 '26936' -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 '32111' -t 2 ! grep '< ' recv.log PASS sys/netinet/mcast Duration 0m18.34s