From 4d8362325935d6637b9eb84475defc400a5c036e Mon Sep 17 00:00:00 2001 From: sahlberg Date: Wed, 5 Jun 2002 11:21:49 +0000 Subject: 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5626 f5534014-38df-0310-8fa8-9805f1628bb7 --- reassemble.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'reassemble.h') 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 @@ -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); -- cgit v1.2.3