// Test for early reset on connect. // Attempt to establish a connection. +.0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 500 +.2 connect(500, ..., ...) = 0 // Send SYN packet. +.0 TCP > S seq 0(0) win 65535 // Receive a connection reset. +.1 TCP < R. seq 0(0) ack 1 win 65535 // Fail to connect. +.0 wait(500, ...) = ECONNREFUSED