aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tpkt.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-02-23 02:30:16 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-02-23 02:30:16 +0000
commit2ff29d5c4b4fddd3a9e6d6ad6dc3e2ce54863712 (patch)
tree76c316fccc8cd65e62d297bdd5570830d467c847 /packet-tpkt.h
parent61b7e6cea4f6b4c67675292ab45ba3af4282cbd7 (diff)
"is_tpkt()" is always used to check a TCP segment to see if it might
have a TPKT header at the beginning, so there's not need for it to have an offset as an argument; its callers don't have to know how big the TPKT header is (or we can put a #define in "packet-tpkt.h" for it). Get rid of the second argument. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4791 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tpkt.h')
-rw-r--r--packet-tpkt.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-tpkt.h b/packet-tpkt.h
index 780a4febad..d4671b2367 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.6 2002/02/22 08:56:46 guy Exp $
+ * $Id: packet-tpkt.h,v 1.7 2002/02/23 02:30:15 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -28,11 +28,10 @@
/*
* Check whether this could be a TPKT-encapsulated PDU.
- * Returns -1 if it's not.
- * Sets "*offset" to the offset of the first byte past the TPKT header,
- * and returns the length from the TPKT header, if it is.
+ * Returns -1 if it's not, and the PDU length from the TPKT header
+ * if it is.
*/
-extern int is_tpkt(tvbuff_t *tvb, int *offset);
+extern int is_tpkt(tvbuff_t *tvb);
/*
* Dissect TPKT-encapsulated data in a TCP stream.