diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-12-14 18:56:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-12-14 18:56:22 +0000 |
commit | 93975466e6734d37c78df86d0d25a6c0286e8ff2 (patch) | |
tree | 0306876cc243a7a13dfea1be20fc45a64c889de1 /packet-ipv6.c | |
parent | 80237dcb08769d1c6ea1a6398fa0979ae610c4ba (diff) | |
download | wireshark-93975466e6734d37c78df86d0d25a6c0286e8ff2.tar.gz wireshark-93975466e6734d37c78df86d0d25a6c0286e8ff2.tar.bz2 wireshark-93975466e6734d37c78df86d0d25a6c0286e8ff2.zip |
Set the "fragmented" field of the "packet_info" structure based on
whether the packet has any fragmentation headers or not.
svn path=/trunk/; revision=2757
Diffstat (limited to 'packet-ipv6.c')
-rw-r--r-- | packet-ipv6.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packet-ipv6.c b/packet-ipv6.c index 1ad058792a..d2d55ff6a5 100644 --- a/packet-ipv6.c +++ b/packet-ipv6.c @@ -1,7 +1,7 @@ /* packet-ipv6.c * Routines for IPv6 packet disassembly * - * $Id: packet-ipv6.c,v 1.47 2000/12/14 08:35:07 guy Exp $ + * $Id: packet-ipv6.c,v 1.48 2000/12/14 18:56:22 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -410,6 +410,9 @@ dissect_ipv6(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { offset += sizeof(struct ip6_hdr); frag = 0; + /* Start out assuming this isn't fragmented. */ + pi.fragmented = FALSE; + again: switch (nxt) { case IP_PROTO_HOPOPTS: @@ -423,6 +426,7 @@ again: offset += advance; goto again; case IP_PROTO_FRAGMENT: + pi.fragmented = TRUE; advance = dissect_frag6(pd, offset, fd, tree, &frag); nxt = pd[poffset = offset]; offset += advance; |