1335640Shselasky#ifndef dlpisubs_h 2335640Shselasky#define dlpisubs_h 3335640Shselasky 4335640Shselasky#ifdef __cplusplus 5335640Shselaskyextern "C" { 6335640Shselasky#endif 7335640Shselasky 8335640Shselasky/* 9335640Shselasky * Private data for capturing on DLPI devices. 10335640Shselasky */ 11335640Shselaskystruct pcap_dlpi { 12335640Shselasky#ifdef HAVE_LIBDLPI 13335640Shselasky dlpi_handle_t dlpi_hd; 14335640Shselasky#endif /* HAVE_LIBDLPI */ 15335640Shselasky#ifdef DL_HP_RAWDLS 16335640Shselasky int send_fd; 17335640Shselasky#endif /* DL_HP_RAWDLS */ 18335640Shselasky 19335640Shselasky struct pcap_stat stat; 20335640Shselasky}; 21335640Shselasky 22335640Shselasky/* 23335640Shselasky * Functions defined by dlpisubs.c. 24335640Shselasky */ 25335640Shselaskyint pcap_stats_dlpi(pcap_t *, struct pcap_stat *); 26335640Shselaskyint pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int); 27335640Shselaskyint pcap_process_mactype(pcap_t *, u_int); 28335640Shselasky#ifdef HAVE_SYS_BUFMOD_H 29335640Shselaskyint pcap_conf_bufmod(pcap_t *, int); 30335640Shselasky#endif 31335640Shselaskyint pcap_alloc_databuf(pcap_t *); 32335640Shselaskyint strioctl(int, int, int, char *); 33335640Shselasky 34335640Shselasky#ifdef __cplusplus 35335640Shselasky} 36335640Shselasky#endif 37335640Shselasky 38335640Shselasky#endif 39