xref: /netbsd-src/external/bsd/libpcap/dist/dlpisubs.h (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1 /*	$NetBSD: dlpisubs.h,v 1.1.1.4 2013/12/31 16:57:25 christos Exp $	*/
2 
3 /*
4  * @(#) Header: /tcpdump/master/libpcap/dlpisubs.h,v 1.2 2008-04-04 19:37:45 guy Exp
5  */
6 
7 #ifndef dlpisubs_h
8 #define	dlpisubs_h
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /*
15  * Private data for capturing on DLPI devices.
16  */
17 struct pcap_dlpi {
18 #ifdef HAVE_LIBDLPI
19 	dlpi_handle_t dlpi_hd;
20 #endif /* HAVE_LIBDLPI */
21 #ifdef DL_HP_RAWDLS
22 	int send_fd;
23 #endif /* DL_HP_RAWDLS */
24 
25 	struct pcap_stat stat;
26 };
27 
28 /*
29  * Functions defined by dlpisubs.c.
30  */
31 int pcap_stats_dlpi(pcap_t *, struct pcap_stat *);
32 int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int);
33 int pcap_process_mactype(pcap_t *, u_int);
34 #ifdef HAVE_SYS_BUFMOD_H
35 int pcap_conf_bufmod(pcap_t *, int);
36 #endif
37 int pcap_alloc_databuf(pcap_t *);
38 int strioctl(int, int, int, char *);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif
45