• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
31 int pcap_alloc_databuf(pcap_t *);
32 int strioctl(int, int, int, char *);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif
39