START sys/kern/sosplice/scapy 2024-08-15T07:59:37Z true ssh -t ot11 true Pseudo-terminal will not be allocated because stdin is not a terminal. ==== run-scapy-delay-oobinline.py ==== rm -f addr.py addr.py.tmp echo 'LOCAL_IF = "mcx1"' >>addr.py.tmp echo 'LOCAL_ADDR = "10.188.31.30"' >>addr.py.tmp echo 'REMOTE_ADDR = "10.188.31.31"' >>addr.py.tmp echo 'FAKE_NET_ADDR = "10.188.30.188"' >>addr.py.tmp echo 'FAKE_NET = "10.188.30.0/24"' >>addr.py.tmp mv addr.py.tmp addr.py echo 'pass on mcx1 no state' | pfctl -a regress -f - time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-delay-oobinline.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Expect spliced SYN Send ACK packet to finish handshake . Sent 1 packets. Send 20 bytes payload and one urgent byte Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Expect spliced urgent payload Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Expect spliced ACK retransmission Retransmit spliced SYN+ACK packet to trigger ACK . Sent 1 packets. Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m14.74s real 0m02.43s user 0m02.42s system ==== run-scapy-delay-synack.py ==== time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-delay-synack.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Expect spliced SYN Send ACK packet to finish handshake . Sent 1 packets. Send 10 bytes payload Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Expect spliced payload Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Expect spliced ACK retransmission Retransmit spliced SYN+ACK packet to trigger ACK . Sent 1 packets. Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m13.26s real 0m02.47s user 0m02.38s system ==== run-scapy-handshake.py ==== time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-handshake.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Expect spliced SYN Send ACK packet to finish handshake . Sent 1 packets. Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m08.79s real 0m02.32s user 0m02.18s system ==== run-scapy-oobinline-delay-connect.py ==== time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-oobinline-delay-connect.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Send ACK packet to finish handshake . Sent 1 packets. Expect spliced SYN Send 20 bytes payload and one urgent byte Begin emission: Finished sending 1 packets. ..* Received 3 packets, got 1 answers, remaining 0 packets Expect spliced urgent payload Wait for splicing syscall, grep it in relay log Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m10.09s real 0m02.56s user 0m02.11s system ==== run-scapy-oobinline.py ==== time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-oobinline.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Expect spliced SYN Send ACK packet to finish handshake . Sent 1 packets. Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Expect spliced urgent payload Send 20 bytes payload and one urgent byte Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m10.12s real 0m02.43s user 0m02.21s system ==== run-scapy-payload-delay-connect.py ==== time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-payload-delay-connect.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Send ACK packet to finish handshake . Sent 1 packets. Expect spliced SYN Send 10 bytes payload Begin emission: Finished sending 1 packets. ..* Received 3 packets, got 1 answers, remaining 0 packets Expect spliced payload Wait for splicing syscall, grep it in relay log Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m10.07s real 0m02.43s user 0m02.20s system ==== run-scapy-payload.py ==== time SUDO="" PYTHON="PYTHONPATH=/usr/src/regress/sys/kern/sosplice/scapy/obj python3 -u" perl -I/usr/src/regress/sys/kern/sosplice/scapy/.. /usr/src/regress/sys/kern/sosplice/scapy/scapy.pl splice 10.188.30.188 10.188.31.31 ot11 /usr/src/regress/sys/kern/sosplice/scapy/scapy-payload.py /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:471: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release cipher=algorithms.Blowfish, /usr/local/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release cipher=algorithms.CAST5, Send SYN packet, receive SYN+ACK Begin emission: Finished sending 1 packets. ...* Received 4 packets, got 1 answers, remaining 0 packets Expect spliced SYN Send ACK packet to finish handshake . Sent 1 packets. Send spliced SYN+ACK packet to finish handshake Begin emission: Finished sending 1 packets. .* Received 2 packets, got 1 answers, remaining 0 packets Expect spliced payload Send 10 bytes payload Begin emission: Finished sending 1 packets. ..* Received 3 packets, got 1 answers, remaining 0 packets Kill connections with RST . Sent 1 packets. . Sent 1 packets. 0m10.11s real 0m02.40s user 0m02.29s system ==== cleanup ==== pfctl -a regress -Fr rules cleared rm -f stamp-pfctl PASS sys/kern/sosplice/scapy Duration 1m22.10s