diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-06-05 11:21:49 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-06-05 11:21:49 +0000 |
commit | 4d8362325935d6637b9eb84475defc400a5c036e (patch) | |
tree | 1af60c8819184f3e7ad37546d58d9e3fac78648a /reassemble.h | |
parent | 4eac1ccfb4a0c0e01564ba80fbea161855545e52 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5626 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'reassemble.h')
-rw-r--r-- | reassemble.h | 18 |
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); |