aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tpkt.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-23 02:30:16 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-23 02:30:16 +0000
commit7027650b5ce8aeeb4e2e7aa91d670d213cde18b2 (patch)
tree76c316fccc8cd65e62d297bdd5570830d467c847 /packet-tpkt.h
parent5d5d507a2977fc97c595e4d25a480889001ef615 (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. svn path=/trunk/; revision=4791
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.