aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tpkt.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-22 08:56:48 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-22 08:56:48 +0000
commite9bc3da3707e51d56a96bf079b99f577f7c5ae6c (patch)
tree22e81a4bb0f52d77136bcefccfacdee0d743da32 /packet-tpkt.h
parentdf151b784ad010e9efe84b59e2667ae3a4eaeaab (diff)
downloadwireshark-e9bc3da3707e51d56a96bf079b99f577f7c5ae6c.tar.gz
wireshark-e9bc3da3707e51d56a96bf079b99f577f7c5ae6c.tar.bz2
wireshark-e9bc3da3707e51d56a96bf079b99f577f7c5ae6c.zip
Handle TPKT packets split across segment boundaries, and multiple TPKT
packets per segment. Instead of having a routine for dissectors such as the Q.931 dissector to call to dissect the TPKT header, have a routine that does all the reassembly and multiple-packets-per-segment work, and have the Q.931 dissector call it. Export "is_tpkt()", and the new routine, to plugins. Add preferences for TPKT and Q.931 reassembly. svn path=/trunk/; revision=4778
Diffstat (limited to 'packet-tpkt.h')
-rw-r--r--packet-tpkt.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/packet-tpkt.h b/packet-tpkt.h
index 9afc02a01a..780a4febad 100644
--- a/packet-tpkt.h
+++ b/packet-tpkt.h
@@ -5,7 +5,7 @@
* Copyright 2000, Philips Electronics N.V.
* Andreas Sikkema <andreas.sikkema@philips.com>
*
- * $Id: packet-tpkt.h,v 1.5 2002/02/02 02:51:20 guy Exp $
+ * $Id: packet-tpkt.h,v 1.6 2002/02/22 08:56:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -32,15 +32,11 @@
* Sets "*offset" to the offset of the first byte past the TPKT header,
* and returns the length from the TPKT header, if it is.
*/
-int is_tpkt( tvbuff_t *tvb, int *offset );
-
+extern int is_tpkt(tvbuff_t *tvb, int *offset);
/*
- * Dissect the TPKT header; called from the TPKT dissector, as well as
- * from dissectors such as the dissector for Q.931-over-TCP.
- *
- * Returns -1 if TPKT isn't enabled, otherwise returns the PDU length
- * from the TPKT header.
+ * Dissect TPKT-encapsulated data in a TCP stream.
*/
-int dissect_tpkt_header( tvbuff_t *tvb, int offset, packet_info *pinfo,
- proto_tree *tree );
+extern void dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, gboolean desegment,
+ dissector_handle_t subdissector_handle);