libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dlpisubs.h
Go to the documentation of this file.
1 #ifndef dlpisubs_h
2 #define dlpisubs_h
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /*
9  * Private data for capturing on DLPI devices.
10  */
11 struct pcap_dlpi {
12 #ifdef HAVE_LIBDLPI
13  dlpi_handle_t dlpi_hd;
14 #endif /* HAVE_LIBDLPI */
15 #ifdef DL_HP_RAWDLS
16  int send_fd;
17 #endif /* DL_HP_RAWDLS */
18 
19  struct pcap_stat stat;
20 };
21 
22 /*
23  * Functions defined by dlpisubs.c.
24  */
25 int pcap_stats_dlpi(pcap_t *, struct pcap_stat *);
26 int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int);
27 int pcap_process_mactype(pcap_t *, u_int);
28 #ifdef HAVE_SYS_BUFMOD_H
29 int pcap_conf_bufmod(pcap_t *, int);
30 #endif
32 int strioctl(int, int, int, char *);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif
int pcap_stats_dlpi(pcap_t *, struct pcap_stat *)
Definition: dlpisubs.c:80
int pcap_process_mactype(pcap_t *, u_int)
Definition: dlpisubs.c:223
int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int)
Definition: dlpisubs.c:135
int strioctl(int, int, int, char *)
Definition: dlpisubs.c:388
int pcap_alloc_databuf(pcap_t *)
Definition: dlpisubs.c:370
void(* pcap_handler)(u_char *, const struct pcap_pkthdr *, const u_char *)
Definition: pcap.h:330
struct pcap_stat stat
Definition: dlpisubs.h:19
Definition: pcap-int.h:200