aboutsummaryrefslogtreecommitdiffstats
path: root/reassemble.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-06-05 11:21:49 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-06-05 11:21:49 +0000
commit31823cb85138ca76ed3df8f67de4f90b88aa800f (patch)
tree1af60c8819184f3e7ad37546d58d9e3fac78648a /reassemble.h
parent230ac0da7aed1baa1bdc33f3352868d32042bad5 (diff)
Added show_fragment_tree() to reassemble. This function will do the common
task of creating a fregment tree for the fragmented packets. Having this identical code to create this tree in every dissector that does PDU reassembly is a huge waste and duplication of code. Updated IP, SMB and DCERPC to use the new function. svn path=/trunk/; revision=5626
Diffstat (limited to 'reassemble.h')
-rw-r--r--reassemble.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/reassemble.h b/reassemble.h
index 07ebb76cd9..7b3faf96a5 100644
--- a/reassemble.h
+++ b/reassemble.h
@@ -1,7 +1,7 @@
/* reassemble.h
* Declarations of outines for {fragment,segment} reassembly
*
- * $Id: reassemble.h,v 1.7 2002/05/24 11:51:14 sahlberg Exp $
+ * $Id: reassemble.h,v 1.8 2002/06/05 11:21:49 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -171,3 +171,19 @@ fragment_get(packet_info *pinfo, guint32 id, GHashTable *fragment_table);
*/
unsigned char *
fragment_delete(packet_info *pinfo, guint32 id, GHashTable *fragment_table);
+
+
+typedef struct _fragment_items {
+ gint *ett_fragment;
+ gint *ett_fragments;
+
+ int *hf_fragments;
+ int *hf_fragment;
+ int *hf_fragment_overlap;
+ int *hf_fragment_overlap_conflict;
+ int *hf_fragment_multiple_tails;
+ int *hf_fragment_too_long_fragment;
+ int *hf_fragment_error;
+} fragment_items;
+int
+show_fragment_tree(fragment_data *ipfd_head, fragment_items *fit, proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb);