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