diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-03-22 03:44:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-03-22 03:44:44 +0000 |
commit | 8f70ffdda97858ba912ee6cfd1c094515b0a926c (patch) | |
tree | 6f67c3875ec29886e8a6364ad6fd896931b58313 /packet.h | |
parent | dad4930e18df2f7d7021858894b358661de8e2f3 (diff) | |
download | wireshark-8f70ffdda97858ba912ee6cfd1c094515b0a926c.tar.gz wireshark-8f70ffdda97858ba912ee6cfd1c094515b0a926c.tar.bz2 wireshark-8f70ffdda97858ba912ee6cfd1c094515b0a926c.zip |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 *); |