mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
Don't use "struct netdissect_options" in interface.h.
Use it in netdissect.h, where it's defined; otherwise, we get a bunch of warnings when compiling modules that include interface.h but don't yet include netdissect.h.
This commit is contained in:
parent
5b0329a9e7
commit
017bac571b
@ -97,14 +97,6 @@ extern char *program_name; /* used to generate self-identifying messages */
|
||||
|
||||
extern int32_t thiszone; /* seconds offset from gmt to local time */
|
||||
|
||||
typedef u_int (*if_ndo_printer)(struct netdissect_options *ndo,
|
||||
const struct pcap_pkthdr *, const u_char *);
|
||||
typedef u_int (*if_printer)(const struct pcap_pkthdr *, const u_char *);
|
||||
|
||||
extern if_ndo_printer lookup_ndo_printer(int);
|
||||
extern if_printer lookup_printer(int);
|
||||
|
||||
|
||||
/*
|
||||
* True if "l" bytes of "var" were captured.
|
||||
*
|
||||
|
@ -268,6 +268,12 @@ extern const char *dnnum_string(netdissect_options *, u_short);
|
||||
|
||||
#include <pcap.h>
|
||||
|
||||
typedef u_int (*if_ndo_printer)(struct netdissect_options *ndo,
|
||||
const struct pcap_pkthdr *, const u_char *);
|
||||
typedef u_int (*if_printer)(const struct pcap_pkthdr *, const u_char *);
|
||||
|
||||
extern if_ndo_printer lookup_ndo_printer(int);
|
||||
extern if_printer lookup_printer(int);
|
||||
|
||||
extern void eap_print(netdissect_options *,const u_char *, u_int);
|
||||
extern int esp_print(netdissect_options *,
|
||||
|
Loading…
Reference in New Issue
Block a user