// Test for early RST packet on accept. // Attempt to accept a connection. +.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500 +.0 bind(500, ..., ...) = 0 +.0 listen(500, 1) = 0 +.2 accept(500, ..., ...) = 0 // Receive RST packet. +.2 TCP < R seq 0(0) win 65535 // Send a RST packet. +.0 TCP > R. seq 0(0) ack 28 // Receive SYN packet. +.2 TCP < S seq 0(0) win 65535 // Send SYN-ACK packet. +.0 TCP > S. seq 0(0) ack 1 win 65535 // Receive ACK on SYN-ACK packet. +.2 TCP < . seq 1(0) ack 1 win 65535 // Succeed to accept connection. +.0 wait(500, ...) = 0