diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-27 03:56:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-27 03:56:48 +0000 |
commit | 4156806b8b2eb003245290870d0980a9bd485ce6 (patch) | |
tree | 0203bdbc10be0aace55799c00593228993e9a594 /packet-tcp.c | |
parent | 1837c71d7d3f0de9e23b5019139e9a8d45bfb442 (diff) | |
download | wireshark-4156806b8b2eb003245290870d0980a9bd485ce6.tar.gz wireshark-4156806b8b2eb003245290870d0980a9bd485ce6.tar.bz2 wireshark-4156806b8b2eb003245290870d0980a9bd485ce6.zip |
From Didier Gautheron: provide a mechanism to indicate why reassembly
wasn't done, and, for TCP, use that mechanism if reassembly isn't done
is an incorrect TCP checksum.
svn path=/trunk/; revision=7212
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index 5c5c2be6fe..6e8481c27b 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.173 2003/02/21 00:22:45 guy Exp $ + * $Id: packet-tcp.c,v 1.174 2003/02/27 03:56:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1966,7 +1966,6 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * Assume, initially, that we can't desegment. */ pinfo->can_desegment = 0; - th_sum = tvb_get_ntohs(tvb, offset + 16); if (!pinfo->fragmented && len >= reported_len) { /* The packet isn't part of an un-reassembled fragmented datagram @@ -2021,6 +2020,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Checksum is invalid, so we're not willing to desegment it. */ desegment_ok = FALSE; + pinfo->noreassembly_reason = " (incorrect TCP checksum)"; } } else { proto_tree_add_uint_format(tcp_tree, hf_tcp_checksum, tvb, |