Closed maartenvds closed 10 years ago
Implemented a TCP flags check mechanism using a new matrix containing all valid flag combinations for each TCP state. "response from closed socket" robot framework test and Linux autotest passed.
No RST is received. Introduced somewhere between 19 Feb, 9h46 and 20 Feb, 9h41.
When you send a segment (non SYN) to a listening port, pico will respond with a RST (expected behaviour).
For some flag combinations, this is not the case. Segments with the following flags will not produce any response:
For some segments, pico should respond with RST and for some, it should respond with RST|ACK. The algorithm is like this:
We should expect RST when the segment contains an ACK flag, we should expect RST|ACK we no ACK flag was set!
Reproduce: sudo ./run.sh --test responsefromclosedsocket testcases/hardware/tcp_connect_bench_dut.txt