tcp analysis
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 10 Feb 2006 22:24:21 +0000 (22:24 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 10 Feb 2006 22:24:21 +0000 (22:24 +0000)
RST segments should not be checked for and not marked as
PREVIOUS_SEGMENT_LOST

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17246 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-tcp.c

index f210bb0dc225a797b040c9af6c31e57dec239730..1b0a207d08d69b333fde5bd3f4c4a861625503e6 100644 (file)
@@ -581,9 +581,11 @@ printf("REV list lastflags:0x%04x base_seq:0x%08x:\n",tcpd->rev->lastsegmentflag
         *
         * We only check for this if we have actually seen segments prior to this
         * one.
+        * RST packets are not checked for this.
         */
        if( tcpd->fwd->nextseq
-       &&  GT_SEQ(seq, tcpd->fwd->nextseq)) {
+       &&  GT_SEQ(seq, tcpd->fwd->nextseq)
+       &&  (flags&(TH_RST))==0 ){
                if(!ta){
                        ta=tcp_analyze_get_acked_struct(pinfo->fd->num, TRUE);
                }