xref: /aosp_15_r20/external/libpcap/dlpisubs.h (revision 8b26181f966a6af5cf6981a6f474313de533bb28)
1*8b26181fSAndroid Build Coastguard Worker #ifndef dlpisubs_h
2*8b26181fSAndroid Build Coastguard Worker #define	dlpisubs_h
3*8b26181fSAndroid Build Coastguard Worker 
4*8b26181fSAndroid Build Coastguard Worker #ifdef __cplusplus
5*8b26181fSAndroid Build Coastguard Worker extern "C" {
6*8b26181fSAndroid Build Coastguard Worker #endif
7*8b26181fSAndroid Build Coastguard Worker 
8*8b26181fSAndroid Build Coastguard Worker /*
9*8b26181fSAndroid Build Coastguard Worker  * Private data for capturing on DLPI devices.
10*8b26181fSAndroid Build Coastguard Worker  */
11*8b26181fSAndroid Build Coastguard Worker struct pcap_dlpi {
12*8b26181fSAndroid Build Coastguard Worker #ifdef HAVE_LIBDLPI
13*8b26181fSAndroid Build Coastguard Worker 	dlpi_handle_t dlpi_hd;
14*8b26181fSAndroid Build Coastguard Worker #endif /* HAVE_LIBDLPI */
15*8b26181fSAndroid Build Coastguard Worker #ifdef DL_HP_RAWDLS
16*8b26181fSAndroid Build Coastguard Worker 	int send_fd;
17*8b26181fSAndroid Build Coastguard Worker #endif /* DL_HP_RAWDLS */
18*8b26181fSAndroid Build Coastguard Worker 
19*8b26181fSAndroid Build Coastguard Worker 	struct pcap_stat stat;
20*8b26181fSAndroid Build Coastguard Worker };
21*8b26181fSAndroid Build Coastguard Worker 
22*8b26181fSAndroid Build Coastguard Worker /*
23*8b26181fSAndroid Build Coastguard Worker  * Functions defined by dlpisubs.c.
24*8b26181fSAndroid Build Coastguard Worker  */
25*8b26181fSAndroid Build Coastguard Worker int pcap_stats_dlpi(pcap_t *, struct pcap_stat *);
26*8b26181fSAndroid Build Coastguard Worker int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int);
27*8b26181fSAndroid Build Coastguard Worker int pcap_process_mactype(pcap_t *, u_int);
28*8b26181fSAndroid Build Coastguard Worker #ifdef HAVE_SYS_BUFMOD_H
29*8b26181fSAndroid Build Coastguard Worker int pcap_conf_bufmod(pcap_t *, int);
30*8b26181fSAndroid Build Coastguard Worker #endif
31*8b26181fSAndroid Build Coastguard Worker int pcap_alloc_databuf(pcap_t *);
32*8b26181fSAndroid Build Coastguard Worker int strioctl(int, int, int, char *);
33*8b26181fSAndroid Build Coastguard Worker 
34*8b26181fSAndroid Build Coastguard Worker #ifdef __cplusplus
35*8b26181fSAndroid Build Coastguard Worker }
36*8b26181fSAndroid Build Coastguard Worker #endif
37*8b26181fSAndroid Build Coastguard Worker 
38*8b26181fSAndroid Build Coastguard Worker #endif
39