aboutsummaryrefslogtreecommitdiffstats
path: root/reassemble.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-05-24 11:51:14 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-05-24 11:51:14 +0000
commit20312807963bfee6cdffa51bd4595f09e9fdcc4f (patch)
tree68534a0a76955fde21e59a1534acab79b7bd8358 /reassemble.c
parent3e082f277e39c8f50e756dfc8258011224fc1087 (diff)
Reassembly of fragmented DCE/RPC (only for connection oriented DCE/RPC).
svn path=/trunk/; revision=5548
Diffstat (limited to 'reassemble.c')
-rw-r--r--reassemble.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/reassemble.c b/reassemble.c
index a0f59432b0..15763fc984 100644
--- a/reassemble.c
+++ b/reassemble.c
@@ -1,7 +1,7 @@
/* reassemble.c
* Routines for {fragment,segment} reassembly
*
- * $Id: reassemble.c,v 1.17 2002/04/25 21:28:15 guy Exp $
+ * $Id: reassemble.c,v 1.18 2002/05/24 11:51:14 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -352,6 +352,26 @@ fragment_set_tot_len(packet_info *pinfo, guint32 id, GHashTable *fragment_table,
return;
}
+guint32
+fragment_get_tot_len(packet_info *pinfo, guint32 id, GHashTable *fragment_table)
+{
+ fragment_data *fd_head;
+ fragment_key key;
+
+ /* create key to search hash with */
+ key.src = pinfo->src;
+ key.dst = pinfo->dst;
+ key.id = id;
+
+ fd_head = g_hash_table_lookup(fragment_table, &key);
+
+ if(fd_head){
+ return fd_head->datalen;
+ }
+
+ return 0;
+}
+
/* This function will set the partial reassembly flag for a fh.
When this function is called, the fh MUST already exist, i.e.