START sys/netinet/mcast 2024-04-25T23:06:30Z 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 '11360' grep '> 11360$' send.log >>> 11360 grep '< 11360$' recv.log <<< 11360 ==== 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 '2327' grep '> 2327$' send.log >>> 2327 grep '< 2327$' recv.log <<< 2327 ==== 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 '10212' grep '> 10212$' send.log >>> 10212 ! 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 '10367' -t 0 grep '> 10367$' send.log >>> 10367 grep '< 10367$' recv.log <<< 10367 ==== 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 '6977' -t 0 grep '> 6977$' send.log >>> 6977 grep '< 6977$' recv.log <<< 6977 ==== 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 '31364' grep '> 31364$' send.log >>> 31364 grep '< 31364$' recv.log <<< 31364 ==== 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 '11527' grep '> 11527$' send.log >>> 11527 ! 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 '22123' -t 0 grep '> 22123$' send.log >>> 22123 grep '< 22123$' recv.log <<< 22123 ==== 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 '5090' -t 0 grep '> 5090$' send.log >>> 5090 grep '< 5090$' recv.log <<< 5090 ==== 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 '29888' grep '< 29888$' recv.log <<< 29888 ==== 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 '8553' grep '< 8553$' recv.log <<< 8553 ==== 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 '21496' -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 '27224' -t 2 grep '< 27224$' recv.log <<< 27224 ==== 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 '4344' -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 '4407' -t 2 ! grep '< ' recv.log PASS sys/netinet/mcast Duration 0m21.43s