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