From 9f70f46833bbc22beb907219ae0ffb71ce5a0626 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Mon, 8 Aug 2011 22:28:50 -0300 Subject: [PATCH] Adding a remark about sequence number from RST --- src/tcp/tcppinger.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tcp/tcppinger.cpp b/src/tcp/tcppinger.cpp index 34d4580..ca22f07 100644 --- a/src/tcp/tcppinger.cpp +++ b/src/tcp/tcppinger.cpp @@ -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() ) -- 1.7.1