diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-06-07 10:11:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-06-07 10:11:41 +0000 |
commit | 4f9508837a66205c3132624297e724e6dbefd482 (patch) | |
tree | f5e00b306053bd03c54de27712976a9f4ded3e70 /packet-ip.c | |
parent | 1b72ef68e6acc8800a2c0a5a719e48aaf5d54c79 (diff) |
Add "show_fragment_seq_tree()", which is like "show_fragment_tree()",
but for stuff reassembled with "fragment_add_seq()" or
"fragment_add_seq_check()".
Add a "fragment tag" string to the "fragment_items", so that packets
with fragmentation errors can be properly flagged as having "Illegal
fragments" or "Illegal segments" depending on the term used with the
protocol in question.
Make all the dissectors that can use "show_fragment_tree()" or
"show_fragment_seq_tree()", and don't already use them, do so.
svn path=/trunk/; revision=5644
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-ip.c b/packet-ip.c index ec867f6ddd..d79adffb46 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.168 2002/06/05 11:21:47 sahlberg Exp $ + * $Id: packet-ip.c,v 1.169 2002/06/07 10:11:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -122,7 +122,8 @@ fragment_items ip_frag_items = { &hf_ip_fragment_overlap_conflict, &hf_ip_fragment_multiple_tails, &hf_ip_fragment_too_long_fragment, - &hf_ip_fragment_error + &hf_ip_fragment_error, + "fragments" }; /* Used by IPv6 as well, so not static */ @@ -1009,8 +1010,8 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) add_new_data_source(pinfo, next_tvb, "Reassembled IPv4"); /* show all fragments */ - update_col_info = !show_fragment_tree(ipfd_head, &ip_frag_items, ip_tree, pinfo, next_tvb); - + update_col_info = !show_fragment_tree(ipfd_head, &ip_frag_items, + ip_tree, pinfo, next_tvb); } else { /* We don't have the complete reassembled payload. */ next_tvb = NULL; |