dlpisubs.h 702 B

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