Adding a remark about sequence number from RST
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 9 Aug 2011 01:28:50 +0000 (22:28 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 9 Aug 2011 01:28:50 +0000 (22:28 -0300)
src/tcp/tcppinger.cpp

index 34d4580..ca22f07 100644 (file)
@@ -303,8 +303,8 @@ void TcpPinger::handle_receive_tcp_segment( const size_t &bytes_transferred )
     TcpHeader tcp_header;
     is >> ipv4_header >> tcp_header;
 
-    // filter out only the TCP reset (RST) replies that match the our expected
-    // sequence number.
+    // filter out only the TCP reset (RST) replies. Note that the sequence
+    // number from RST does not match the sent ACK's sequence number.
     if ( is &&
          tcp_header.reset() &&
          ipv4_header.get_source_address() == DestinationEndpoint.address() )