Well, that was dumb. I didn't have to add a "capture_data()" routine; I
just had to make "sap_capture_func()" return NULL if it didn't find an entry for the SAP it was passed. svn path=/trunk/; revision=220
This commit is contained in:
parent
8f70ffdda9
commit
05e5c40597
|
@ -2,7 +2,7 @@
|
|||
* Routines for raw data (default case)
|
||||
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
|
||||
*
|
||||
* $Id: packet-data.c,v 1.6 1999/03/22 03:44:43 guy Exp $
|
||||
* $Id: packet-data.c,v 1.7 1999/03/22 03:56:33 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@unicom.net>
|
||||
|
@ -39,11 +39,6 @@
|
|||
#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) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Routines for IEEE 802.2 LLC layer
|
||||
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
|
||||
*
|
||||
* $Id: packet-llc.c,v 1.12 1999/03/22 03:44:44 guy Exp $
|
||||
* $Id: packet-llc.c,v 1.13 1999/03/22 03:56:34 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@unicom.net>
|
||||
|
@ -103,7 +103,7 @@ sap_capture_func(u_char sap) {
|
|||
}
|
||||
i++;
|
||||
}
|
||||
return capture_data;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static dissect_func_t *
|
||||
|
|
3
packet.h
3
packet.h
|
@ -1,7 +1,7 @@
|
|||
/* packet.h
|
||||
* Definitions for packet disassembly structures and routines
|
||||
*
|
||||
* $Id: packet.h,v 1.39 1999/03/22 03:44:44 guy Exp $
|
||||
* $Id: packet.h,v 1.40 1999/03/22 03:56:34 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -545,7 +545,6 @@ 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 *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue