summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-11-07 23:56:10 +0000
committerJakub Kicinski <kuba@kernel.org>2026-11-11 14:00:42 -0800
commite6f5a8d080051022d451e1ad07cd68a411ed350f (patch)
tree0d2e166c2fe0662c4c995c2df84401549e281c20 /tools/perf/scripts/python
parent44809e49177992b15708a150437d9aebc5beea9c (diff)
selftest: packetdrill: Add test for DEFER_CONNECT.
tcp_fastopen_client_defer-connect.pkt does the following: 1. create a socket 2. connect() + connect(AF_UNSPEC) to let packetdrill remember 4-tuple 3. setsockopt(TCP_FASTOPEN_CONNECT) + connect() 4. inject a forged SYN 5. check sk->sk_state 6. verify sendto() sends SYN Without the previous patch, incoming simultaneous SYN is accepted even before outgoing SYN is sent. Before: [ 27.941419] TCP: tcp_send_synack: wrong queue state tcp_fastopen_client_defer-connect.pkt:35: error handling packet: live packet field tcp_seq: expected: 501 (0x1f5) vs actual: 0 (0x0) script packet: 0.004460 . 501:501(0) ack 1 actual packet: 0.004450 . 0:0(0) ack 4294961618 win 1050 not ok 1 ipv4 Or if we remove Test 1, we can see ICMP is accepted: tcp_fastopen_client_defer-connect.pkt:33: runtime error in sendto call: Expected result 500 but got -1 with errno 103 (Software caused connection abort) not ok 1 ipv4 After: ok 1 ipv4 ok 2 ipv6 ok 3 ipv4-mapped-ipv6 # Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20261107235720.3129212-4-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions