START sys/net/pf_divert 2024-03-25T10:24:23Z true ssh -t ot11 true Pseudo-terminal will not be allocated because stdin is not a terminal. route -n delete -inet -host 10.188.31.188 2>/dev/null delete host 10.188.31.188: not in table *** Error 1 in target '.BEGIN' (ignored) route -n add -inet -host 10.188.31.188 10.188.31.31 add host 10.188.31.188: gateway 10.188.31.31 route -n delete -inet6 -host fdd7:e83e:66bc:31::188 2>/dev/null delete host fdd7:e83e:66bc:31::188: not in table *** Error 1 in target '.BEGIN' (ignored) route -n add -inet6 -host fdd7:e83e:66bc:31::188 fdd7:e83e:66bc:31::31 add host fdd7:e83e:66bc:31::188: gateway fdd7:e83e:66bc:31::31 ==== run-inet-args-tcp-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m02.00s real 0m00.55s user 0m00.26s system ==== run-inet6-args-tcp-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.89s real 0m00.34s user 0m00.20s system ==== run-inet-args-tcp-reply ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m01.99s real 0m00.53s user 0m00.27s system ==== run-inet6-args-tcp-reply ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.10s real 0m00.57s user 0m00.22s system ==== run-inet-args-udp-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.89s real 0m00.60s user 0m00.24s system ==== run-inet6-args-udp-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.88s real 0m00.57s user 0m00.23s system ==== run-inet-args-udp-reply ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m01.99s real 0m00.56s user 0m00.26s system ==== run-inet6-args-udp-reply ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.00s real 0m00.57s user 0m00.24s system ==== run-inet-args-udp-reply-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.12s real 0m00.50s user 0m00.37s system ==== run-inet6-args-udp-reply-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.00s real 0m00.56s user 0m00.26s system ==== run-inet-args-rip-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m02.00s real 0m00.46s user 0m00.35s system ==== run-inet6-args-rip-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m02.00s real 0m00.55s user 0m00.25s system ==== run-inet-args-rip-reply ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.00s real 0m00.56s user 0m00.26s system ==== run-inet6-args-rip-reply ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.00s real 0m00.48s user 0m00.33s system ==== run-inet-args-rip-reply-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m01.99s real 0m00.58s user 0m00.21s system ==== run-inet6-args-rip-reply-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m01.99s real 0m00.54s user 0m00.25s system ==== run-inet-args-icmp-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-icmp-to.pl 0m01.90s real 0m00.35s user 0m00.20s system ==== run-inet6-args-icmp-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-icmp-to.pl 0m02.00s real 0m00.58s user 0m00.25s system ==== run-inet-args-icmp-reply-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-icmp-reply-to.pl 0m01.86s real 0m00.45s user 0m00.32s system ==== run-inet6-args-icmp-reply-to ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-icmp-reply-to.pl 0m01.87s real 0m00.52s user 0m00.25s system ==== run-inet-args-icmp-reply-reuse ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-icmp-reply-reuse.pl 0m01.86s real 0m00.56s user 0m00.19s system ==== run-inet6-args-icmp-reply-reuse ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-icmp-reply-reuse.pl 0m01.86s real 0m00.61s user 0m00.21s system ==== run-inet-reuse-tcp-to-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.89s real 0m00.51s user 0m00.30s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp 10.188.31.30:'`cat server.port`' -> 10.188.31.188:'`cat client.port`'' killed 1 states # tcp socket is in time wait so state must still exist ssh ot11 pfctl -ss | egrep 'all tcp 10.188.31.188:?\[?'`cat client.port`'\]? .. 10.188.31.30:?\[?'`cat server.port`'\]? ' all tcp 10.188.31.188:12172 <- 10.188.31.30:13872 FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop 10.188.31.188 `cat client.port` 10.188.31.30 `cat server.port` 10.188.31.188:12172 10.188.31.30:13872 dropped # divert-to state disappeared when the tcp socket was dropped ssh ot11 pfctl -ss | ! egrep 'all tcp 10.188.31.188:?\[?'`cat client.port`'\]? .. 10.188.31.30:?\[?'`cat server.port`'\]? ' # divert-to state has disappeared as tcp socket is always connected ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.90s real 0m00.60s user 0m00.22s system # dropping the server tcp socket in time wait must remove the state ssh ot11 pfctl -ss | egrep 'all tcp 10.188.31.188:?\[?'`cat server.port`'\]? .. 10.188.31.30:?\[?'`cat client.port`'\]? ' all tcp 10.188.31.188:13872 <- 10.188.31.30:12172 FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop 10.188.31.188 `cat server.port` 10.188.31.30 `cat client.port` 10.188.31.188:13872 10.188.31.30:12172 dropped ssh ot11 pfctl -ss | ! egrep 'all tcp 10.188.31.188:?\[?'`cat server.port`'\]? .. 10.188.31.30:?\[?'`cat client.port`'\]? ' # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-tcp-to-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m02.00s real 0m00.48s user 0m00.36s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp fdd7:e83e:66bc:31::30['`cat server.port`'] -> fdd7:e83e:66bc:31::188['`cat client.port`']' killed 1 states # tcp socket is in time wait so state must still exist ssh ot11 pfctl -ss | egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat client.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat server.port`'\]? ' all tcp fdd7:e83e:66bc:31::188[1506] <- fdd7:e83e:66bc:31::30[47274] FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop fdd7:e83e:66bc:31::188 `cat client.port` fdd7:e83e:66bc:31::30 `cat server.port` [fdd7:e83e:66bc:31::188]:1506 [fdd7:e83e:66bc:31::30]:47274 dropped # divert-to state disappeared when the tcp socket was dropped ssh ot11 pfctl -ss | ! egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat client.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat server.port`'\]? ' # divert-to state has disappeared as tcp socket is always connected ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.91s real 0m00.34s user 0m00.25s system # dropping the server tcp socket in time wait must remove the state ssh ot11 pfctl -ss | egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat server.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat client.port`'\]? ' all tcp fdd7:e83e:66bc:31::188[47274] <- fdd7:e83e:66bc:31::30[1506] FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop fdd7:e83e:66bc:31::188 `cat server.port` fdd7:e83e:66bc:31::30 `cat client.port` [fdd7:e83e:66bc:31::188]:47274 [fdd7:e83e:66bc:31::30]:1506 dropped ssh ot11 pfctl -ss | ! egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat server.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat client.port`'\]? ' # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-tcp-to-reply ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.89s real 0m00.34s user 0m00.20s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp 10.188.31.30:'`cat server.port`' -> 10.188.31.188:'`cat client.port`'' killed 1 states # tcp socket is in time wait so state must still exist ssh ot11 pfctl -ss | egrep 'all tcp 10.188.31.188:?\[?'`cat client.port`'\]? .. 10.188.31.30:?\[?'`cat server.port`'\]? ' all tcp 10.188.31.188:22667 <- 10.188.31.30:4860 FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop 10.188.31.188 `cat client.port` 10.188.31.30 `cat server.port` 10.188.31.188:22667 10.188.31.30:4860 dropped # divert-to state disappeared when the tcp socket was dropped ssh ot11 pfctl -ss | ! egrep 'all tcp 10.188.31.188:?\[?'`cat client.port`'\]? .. 10.188.31.30:?\[?'`cat server.port`'\]? ' # divert-to state has disappeared as tcp socket is always connected ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.12s real 0m00.55s user 0m00.30s system # drop client tcp socket still in time wait to clean up tcpdrop 10.188.31.30 `cat server.port` 10.188.31.188 `cat client.port` 10.188.31.30:4860 10.188.31.188:22667 dropped # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-tcp-to-reply ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.89s real 0m00.35s user 0m00.23s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp fdd7:e83e:66bc:31::30['`cat server.port`'] -> fdd7:e83e:66bc:31::188['`cat client.port`']' killed 1 states # tcp socket is in time wait so state must still exist ssh ot11 pfctl -ss | egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat client.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat server.port`'\]? ' all tcp fdd7:e83e:66bc:31::188[8933] <- fdd7:e83e:66bc:31::30[35269] FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop fdd7:e83e:66bc:31::188 `cat client.port` fdd7:e83e:66bc:31::30 `cat server.port` [fdd7:e83e:66bc:31::188]:8933 [fdd7:e83e:66bc:31::30]:35269 dropped # divert-to state disappeared when the tcp socket was dropped ssh ot11 pfctl -ss | ! egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat client.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat server.port`'\]? ' # divert-to state has disappeared as tcp socket is always connected ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.13s real 0m00.59s user 0m00.21s system # drop client tcp socket still in time wait to clean up tcpdrop fdd7:e83e:66bc:31::30 `cat server.port` fdd7:e83e:66bc:31::188 `cat client.port` [fdd7:e83e:66bc:31::30]:35269 [fdd7:e83e:66bc:31::188]:8933 dropped # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-tcp-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.10s real 0m00.53s user 0m00.26s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse tcpdrop 10.188.31.30 `cat client.port` 10.188.31.188 `cat server.port` 10.188.31.30:45518 10.188.31.188:22460 dropped # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp 10.188.31.30:'`cat client.port`' <- 10.188.31.188:'`cat server.port`'' killed 1 states # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.91s real 0m00.31s user 0m00.25s system # dropping the server tcp socket in time wait must remove the state ssh ot11 pfctl -ss | egrep 'all tcp 10.188.31.188:?\[?'`cat server.port`'\]? .. 10.188.31.30:?\[?'`cat client.port`'\]? ' all tcp 10.188.31.188:22460 <- 10.188.31.30:45518 FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop 10.188.31.188 `cat server.port` 10.188.31.30 `cat client.port` 10.188.31.188:22460 10.188.31.30:45518 dropped ssh ot11 pfctl -ss | ! egrep 'all tcp 10.188.31.188:?\[?'`cat server.port`'\]? .. 10.188.31.30:?\[?'`cat client.port`'\]? ' # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-tcp-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.00s real 0m00.59s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse tcpdrop fdd7:e83e:66bc:31::30 `cat client.port` fdd7:e83e:66bc:31::188 `cat server.port` [fdd7:e83e:66bc:31::30]:19486 [fdd7:e83e:66bc:31::188]:21490 dropped # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp fdd7:e83e:66bc:31::30['`cat client.port`'] <- fdd7:e83e:66bc:31::188['`cat server.port`']' killed 1 states # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-to.pl 0m01.91s real 0m00.39s user 0m00.21s system # dropping the server tcp socket in time wait must remove the state ssh ot11 pfctl -ss | egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat server.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat client.port`'\]? ' all tcp fdd7:e83e:66bc:31::188[21490] <- fdd7:e83e:66bc:31::30[19486] FIN_WAIT_2:FIN_WAIT_2 ssh ot11 tcpdrop fdd7:e83e:66bc:31::188 `cat server.port` fdd7:e83e:66bc:31::30 `cat client.port` [fdd7:e83e:66bc:31::188]:21490 [fdd7:e83e:66bc:31::30]:19486 dropped ssh ot11 pfctl -ss | ! egrep 'all tcp fdd7:e83e:66bc:31::188:?\[?'`cat server.port`'\]? .. fdd7:e83e:66bc:31::30:?\[?'`cat client.port`'\]? ' # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-tcp-reply-reply ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.00s real 0m00.57s user 0m00.23s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse tcpdrop 10.188.31.30 `cat client.port` 10.188.31.188 `cat server.port` 10.188.31.30:14453 10.188.31.188:1544 dropped # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp 10.188.31.30:'`cat client.port`' <- 10.188.31.188:'`cat server.port`'' killed 1 states # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.01s real 0m00.35s user 0m00.20s system # drop client tcp socket still in time wait to clean up tcpdrop 10.188.31.30 `cat server.port` 10.188.31.188 `cat client.port` 10.188.31.30:1544 10.188.31.188:14453 dropped # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-tcp-reply-reply ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.11s real 0m00.55s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # drop client tcp socket still in time wait to allow reuse tcpdrop fdd7:e83e:66bc:31::30 `cat client.port` fdd7:e83e:66bc:31::188 `cat server.port` [fdd7:e83e:66bc:31::30]:48652 [fdd7:e83e:66bc:31::188]:45165 dropped # to avoid SYN retransmit, kill local tcp state that will be reused pfctl -k key -k 'tcp fdd7:e83e:66bc:31::30['`cat client.port`'] <- fdd7:e83e:66bc:31::188['`cat server.port`']' killed 1 states # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-tcp-reply.pl 0m02.01s real 0m00.40s user 0m00.19s system # drop client tcp socket still in time wait to clean up tcpdrop fdd7:e83e:66bc:31::30 `cat server.port` fdd7:e83e:66bc:31::188 `cat client.port` [fdd7:e83e:66bc:31::30]:45165 [fdd7:e83e:66bc:31::188]:48652 dropped # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-udp-to-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.89s real 0m00.42s user 0m00.15s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all udp 10.188.31.188:16808 <- 10.188.31.30:15552 NO_TRAFFIC:SINGLE # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.90s real 0m00.44s user 0m00.15s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all udp 10.188.31.188:16808 <- 10.188.31.30:15552 NO_TRAFFIC:SINGLE all udp 10.188.31.188:15552 <- 10.188.31.30:16808 NO_TRAFFIC:SINGLE ==== run-inet6-reuse-udp-to-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.89s real 0m00.32s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all udp fdd7:e83e:66bc:31::188[41089] <- fdd7:e83e:66bc:31::30[21883] NO_TRAFFIC:SINGLE # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.90s real 0m00.58s user 0m00.24s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all udp fdd7:e83e:66bc:31::188[41089] <- fdd7:e83e:66bc:31::30[21883] NO_TRAFFIC:SINGLE all udp fdd7:e83e:66bc:31::188[21883] <- fdd7:e83e:66bc:31::30[41089] NO_TRAFFIC:SINGLE ==== run-inet-reuse-udp-to-reply ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.90s real 0m00.33s user 0m00.23s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all udp 10.188.31.188:44455 <- 10.188.31.30:32403 NO_TRAFFIC:SINGLE # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.02s real 0m00.57s user 0m00.27s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-udp-to-reply ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.89s real 0m00.30s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all udp fdd7:e83e:66bc:31::188[16818] <- fdd7:e83e:66bc:31::30[44201] NO_TRAFFIC:SINGLE # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.00s real 0m00.59s user 0m00.20s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-udp-to-reply-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.90s real 0m00.43s user 0m00.16s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all udp 10.188.31.188:6042 <- 10.188.31.30:5144 NO_TRAFFIC:SINGLE # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.02s real 0m00.53s user 0m00.29s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-udp-to-reply-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.89s real 0m00.33s user 0m00.22s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all udp fdd7:e83e:66bc:31::188[33944] <- fdd7:e83e:66bc:31::30[33466] NO_TRAFFIC:SINGLE # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.00s real 0m00.47s user 0m00.35s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-udp-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.00s real 0m00.46s user 0m00.37s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.91s real 0m00.50s user 0m00.30s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all udp 10.188.31.188:2344 <- 10.188.31.30:24367 NO_TRAFFIC:SINGLE ==== run-inet6-reuse-udp-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.00s real 0m00.61s user 0m00.20s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.90s real 0m00.57s user 0m00.25s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all udp fdd7:e83e:66bc:31::188[22523] <- fdd7:e83e:66bc:31::30[4972] NO_TRAFFIC:SINGLE ==== run-inet-reuse-udp-reply-reply ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m01.99s real 0m00.60s user 0m00.22s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.01s real 0m00.45s user 0m00.34s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-udp-reply-reply ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m01.99s real 0m00.53s user 0m00.30s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.01s real 0m00.53s user 0m00.32s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-udp-reply-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m01.99s real 0m00.50s user 0m00.30s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.12s real 0m00.51s user 0m00.30s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-udp-reply-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.00s real 0m00.53s user 0m00.27s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.01s real 0m00.49s user 0m00.31s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-udp-reply-to-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.01s real 0m00.57s user 0m00.23s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.91s real 0m00.56s user 0m00.29s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all udp 10.188.31.188:38080 <- 10.188.31.30:42257 NO_TRAFFIC:SINGLE ==== run-inet6-reuse-udp-reply-to-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.00s real 0m00.62s user 0m00.24s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-to.pl 0m01.90s real 0m00.40s user 0m00.18s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all udp fdd7:e83e:66bc:31::188[16482] <- fdd7:e83e:66bc:31::30[4193] NO_TRAFFIC:SINGLE ==== run-inet-reuse-udp-reply-to-reply ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.12s real 0m00.56s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.01s real 0m00.48s user 0m00.30s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-udp-reply-to-reply ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m01.99s real 0m00.61s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply.pl 0m02.00s real 0m00.56s user 0m00.24s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-udp-reply-to-reply-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.11s real 0m00.55s user 0m00.26s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.02s real 0m00.54s user 0m00.24s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-udp-reply-to-reply-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.00s real 0m00.55s user 0m00.26s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-udp-reply-to.pl 0m02.02s real 0m00.35s user 0m00.22s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-rip-to-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m02.02s real 0m00.51s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all 254 10.188.31.188 <- 10.188.31.30 NO_TRAFFIC:SINGLE # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.90s real 0m00.32s user 0m00.22s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all 254 10.188.31.188 <- 10.188.31.30 NO_TRAFFIC:SINGLE ==== run-inet6-reuse-rip-to-to ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.90s real 0m00.58s user 0m00.24s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all 254 fdd7:e83e:66bc:31::188 <- fdd7:e83e:66bc:31::30 NO_TRAFFIC:SINGLE # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.91s real 0m00.53s user 0m00.29s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all 254 fdd7:e83e:66bc:31::188 <- fdd7:e83e:66bc:31::30 NO_TRAFFIC:SINGLE ==== run-inet-reuse-rip-to-reply ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.99s real 0m00.55s user 0m00.27s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all 254 10.188.31.188 <- 10.188.31.30 NO_TRAFFIC:SINGLE # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.02s real 0m00.59s user 0m00.28s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-rip-to-reply ==== # create state with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.89s real 0m00.47s user 0m00.32s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-to state still exists as the socket is unconnected ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all 254 fdd7:e83e:66bc:31::188 <- fdd7:e83e:66bc:31::30 NO_TRAFFIC:SINGLE # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.01s real 0m00.52s user 0m00.29s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-rip-to-reply-to ==== rip to before reply is broken, it does not remove the state. DISABLED ==== run-inet6-reuse-rip-to-reply-to ==== rip to before reply is broken, it does not remove the state. DISABLED ==== run-inet-reuse-rip-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.01s real 0m00.53s user 0m00.29s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.91s real 0m00.39s user 0m00.17s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all 254 10.188.31.188 <- 10.188.31.30 NO_TRAFFIC:SINGLE ==== run-inet6-reuse-rip-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.01s real 0m00.54s user 0m00.27s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.91s real 0m00.31s user 0m00.24s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all 254 fdd7:e83e:66bc:31::188 <- fdd7:e83e:66bc:31::30 NO_TRAFFIC:SINGLE ==== run-inet-reuse-rip-reply-reply ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.00s real 0m00.53s user 0m00.28s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.01s real 0m00.60s user 0m00.22s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-rip-reply-reply ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.00s real 0m00.58s user 0m00.22s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.02s real 0m00.55s user 0m00.25s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-rip-reply-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.00s real 0m00.52s user 0m00.28s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.01s real 0m00.54s user 0m00.26s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-rip-reply-reply-to ==== # create state with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.00s real 0m00.55s user 0m00.27s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.01s real 0m00.60s user 0m00.25s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-rip-reply-to-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.02s real 0m00.57s user 0m00.26s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.90s real 0m00.36s user 0m00.20s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' all 254 10.188.31.188 <- 10.188.31.30 NO_TRAFFIC:SINGLE ==== run-inet6-reuse-rip-reply-to-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.00s real 0m00.60s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-to.pl 0m01.91s real 0m00.35s user 0m00.21s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' all 254 fdd7:e83e:66bc:31::188 <- fdd7:e83e:66bc:31::30 NO_TRAFFIC:SINGLE ==== run-inet-reuse-rip-reply-to-reply ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.10s real 0m00.52s user 0m00.24s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.02s real 0m00.48s user 0m00.35s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-rip-reply-to-reply ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.00s real 0m00.56s user 0m00.27s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply.pl 0m02.01s real 0m00.54s user 0m00.26s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-reuse-rip-reply-to-reply-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.00s real 0m00.55s user 0m00.25s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet 10.188.31.30 10.188.31.188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.12s real 0m00.50s user 0m00.33s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) 10.188.31.188[][0-9:]* .. 10.188.31.30[][0-9:]* ' ==== run-inet6-reuse-rip-reply-to-reply-to ==== # create state with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.00s real 0m00.58s user 0m00.24s system sed -n '/^connect peer:/s/.* //p' client.log >client.port sed -n '/^connect sock:/s/.* //p' client.log >server.port # divert-reply state has disappeared when the connected socket closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' # create state again with reply-to divert rule time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::188 ot11 `cat client.port` `cat server.port` /usr/src/regress/sys/net/pf_divert/args-rip-reply-to.pl 0m02.01s real 0m00.51s user 0m00.32s system # states must disappear after connected socket has been closed ssh ot11 pfctl -ss | ! egrep ' (tcp|udp|254) fdd7:e83e:66bc:31::188[][0-9:]* .. fdd7:e83e:66bc:31::30[][0-9:]* ' ==== run-inet-args-udp-packet-in ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-packet-in.pl 0m02.00s real 0m00.58s user 0m00.25s system ==== run-inet6-args-udp-packet-in ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-packet-in.pl 0m02.01s real 0m00.42s user 0m00.17s system ==== run-inet-args-udp-packet-out ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet 10.188.31.30 10.188.31.31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-packet-out.pl 0m02.10s real 0m00.58s user 0m00.22s system ==== run-inet6-args-udp-packet-out ==== time SUDO= KTRACE= perl -I/usr/src/regress/sys/net/pf_divert /usr/src/regress/sys/net/pf_divert/remote.pl -f inet6 fdd7:e83e:66bc:31::30 fdd7:e83e:66bc:31::31 ot11 /usr/src/regress/sys/net/pf_divert/args-udp-packet-out.pl 0m02.11s real 0m00.53s user 0m00.26s system PASS sys/net/pf_divert Duration 5m33.90s