START	sys/kern/sosplice/scapy	2025-03-12T04:33:53Z

true
ssh -t ot2 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 = "em2"' >>addr.py.tmp
echo 'LOCAL_ADDR = "10.188.81.21"' >>addr.py.tmp
echo 'REMOTE_ADDR = "10.188.81.22"' >>addr.py.tmp
echo 'FAKE_NET_ADDR = "10.188.80.188"' >>addr.py.tmp
echo 'FAKE_NET = "10.188.80.0/24"' >>addr.py.tmp
mv addr.py.tmp addr.py
echo 'pass on em2 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-delay-oobinline.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Expect spliced SYN
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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 4 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.
    0m10.82s real     0m01.63s user     0m00.31s 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-delay-synack.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Expect spliced SYN
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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 3 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.
    0m10.02s real     0m01.51s user     0m00.32s 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-handshake.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Expect spliced SYN
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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.
    0m05.76s real     0m01.55s user     0m00.23s 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-oobinline-delay-connect.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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 4 packets, got 1 answers, remaining 0 packets
Kill connections with RST
.
Sent 1 packets.
.
Sent 1 packets.
    0m06.87s real     0m01.57s user     0m00.25s 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-oobinline.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Expect spliced SYN
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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.
    0m06.97s real     0m01.57s user     0m00.24s 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-payload-delay-connect.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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 3 packets, got 1 answers, remaining 0 packets
Kill connections with RST
.
Sent 1 packets.
.
Sent 1 packets.
    0m07.01s real     0m01.57s user     0m00.26s 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.80.188 10.188.81.22 ot2 /usr/src/regress/sys/kern/sosplice/scapy/scapy-payload.py
Send SYN packet, receive SYN+ACK
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
Begin emission
...*
Finished sending 1 packets

Received 4 packets, got 1 answers, remaining 0 packets
Expect spliced SYN
Send ACK packet to finish handshake
/usr/local/lib/python3.12/site-packages/scapy/sendrecv.py:479: SyntaxWarning: 'iface' has no effect on L3 I/O send(). For multicast/link-local see https://scapy.readthedocs.io/en/latest/usage.html#multicast
  warnings.warn(
.
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.
    0m06.84s real     0m01.66s user     0m00.26s system

==== cleanup ====
pfctl -a regress -Fr
rules cleared
rm -f stamp-pfctl

PASS	sys/kern/sosplice/scapy	Duration 0m56.13s