aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ethertype.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-16 07:35:43 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-16 07:35:43 +0000
commitee1b884ee9b7baa22ebf1a7e1363994124a0ff24 (patch)
tree1eaeec182ddb59258b1ee66e3a901ada60ee9f79 /packet-ethertype.c
parentf19c2e2defe72f740356a3df48a64f6e24918130 (diff)
Tvbuffify the STP dissector, have it register itself and have the LLC
dissector call it through a handle, and make it static. Give "dissect_data()" an "offset" argument, so dissectors can use it to dissect part of the packet without having to cook up a new tvbuff. Go back to using "dissect_data()" to dissect the data in an IPP request. svn path=/trunk/; revision=2651
Diffstat (limited to 'packet-ethertype.c')
-rw-r--r--packet-ethertype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ethertype.c b/packet-ethertype.c
index 529edfb6d0..3ffcd0e2c3 100644
--- a/packet-ethertype.c
+++ b/packet-ethertype.c
@@ -1,7 +1,7 @@
/* ethertype.c
* Routines for calling the right protocol for the ethertype.
*
- * $Id: packet-ethertype.c,v 1.7 2000/08/09 22:10:23 deniel Exp $
+ * $Id: packet-ethertype.c,v 1.8 2000/11/16 07:35:37 guy Exp $
*
* Gilbert Ramirez <gram@xiexie.org>
*
@@ -114,7 +114,7 @@ ethertype(guint16 etype, tvbuff_t *tvb, int offset_after_etype, packet_info *pin
next_tvb, pinfo, tree)) {
/* No sub-dissector found.
Label rest of packet as "Data" */
- dissect_data(next_tvb, pinfo, tree);
+ dissect_data(next_tvb, 0, pinfo, tree);
/* Label protocol */
switch(etype) {