aboutsummaryrefslogtreecommitdiffstats
path: root/packet-data.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-03-22 03:44:44 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-03-22 03:44:44 +0000
commit4809632f83e3e883018a69ee9f6b3011e949b1ff (patch)
tree6f67c3875ec29886e8a6364ad6fd896931b58313 /packet-data.c
parentbe4d4783db8d75c132b78c6888ba183ac4e9320d (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.... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@219 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-data.c')
-rw-r--r--packet-data.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/packet-data.c b/packet-data.c
index e389ab56c6..77f5cde17c 100644
--- a/packet-data.c
+++ b/packet-data.c
@@ -2,7 +2,7 @@
* Routines for raw data (default case)
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
- * $Id: packet-data.c,v 1.5 1998/11/12 00:06:25 gram Exp $
+ * $Id: packet-data.c,v 1.6 1999/03/22 03:44:43 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -39,6 +39,11 @@
#include "ethereal.h"
#include "packet.h"
+void
+capture_data(const u_char *pd, int offset, guint32 cap_len, packet_counts *ld) {
+
+ ld->other++;
+}
void
dissect_data(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {