aboutsummaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-03-22 03:44:44 +0000
committerGuy Harris <guy@alum.mit.edu>1999-03-22 03:44:44 +0000
commit8f70ffdda97858ba912ee6cfd1c094515b0a926c (patch)
tree6f67c3875ec29886e8a6364ad6fd896931b58313 /packet.h
parentdad4930e18df2f7d7021858894b358661de8e2f3 (diff)
Have "sap_capture_func()" return "capture_data" rather than
"dissect_data"; if you call "dissect_data()" with an argument list of the type expected by a "capture_XXX()" routine, it won't do the right thing (and may do the wrong thing, e.g. crash). Have "sap_capture_func()" (and "sap_dissect_func()") return function pointers rather than "void *"s, so that I don't make a mistake like the above in the future.... svn path=/trunk/; revision=219
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index af1aa134b8..0d1c59b172 100644
--- a/packet.h
+++ b/packet.h
@@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.38 1999/02/15 06:36:57 guy Exp $
+ * $Id: packet.h,v 1.39 1999/03/22 03:44:44 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -545,6 +545,7 @@ void capture_tr(const u_char *, guint32, packet_counts *);
* packet_counts *
* They should never modify the packet data.
*/
+void capture_data(const u_char *, int, guint32, packet_counts *);
void capture_llc(const u_char *, int, guint32, packet_counts *);
void capture_ip(const u_char *, int, guint32, packet_counts *);