1#ifndef dlpisubs_h 2#define dlpisubs_h 3 4#ifdef __cplusplus 5extern "C" { 6#endif 7 8/* 9 * Private data for capturing on DLPI devices. 10 */ 11struct 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 */ 25int pcap_stats_dlpi(pcap_t *, struct pcap_stat *); 26int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int); 27int pcap_process_mactype(pcap_t *, u_int); 28#ifdef HAVE_SYS_BUFMOD_H 29int pcap_conf_bufmod(pcap_t *, int); 30#endif 31int pcap_alloc_databuf(pcap_t *); 32int strioctl(int, int, int, char *); 33 34#ifdef __cplusplus 35} 36#endif 37 38#endif 39