1
0

fakepcap.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* $Id$ */
  2. /*
  3. * Copyright (c) 2001-2010 Aaron Turner <aturner at synfin dot net>
  4. * Copyright (c) 2013-2024 Fred Klassen <tcpreplay at appneta dot com> - AppNeta
  5. *
  6. * The Tcpreplay Suite of tools is free software: you can redistribute it
  7. * and/or modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation, either version 3 of the
  9. * License, or with the authors permission any later version.
  10. *
  11. * The Tcpreplay Suite is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with the Tcpreplay Suite. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #pragma once
  20. #include "config.h"
  21. /*
  22. * libpcap <= 0.5 don't have some DLT types. Add them here
  23. */
  24. #ifndef HAVE_DLT_LINUX_SLL
  25. #define DLT_LINUX_SLL 113
  26. #endif
  27. #ifndef HAVE_DLT_LINUX_SLL2
  28. #define DLT_LINUX_SLL2 276
  29. #endif
  30. #ifndef HAVE_DLT_C_HDLC
  31. #define DLT_C_HDLC 104
  32. #endif
  33. /*
  34. * libpcap < 0.8 don't have pcap_datalink_val_to_description()
  35. * and pcap_datalink_val_to_name()
  36. */
  37. #ifndef HAVE_DLT_VAL_TO_DESC
  38. const char *pcap_datalink_val_to_description(int dlt);
  39. const char *pcap_datalink_val_to_name(int dlt);
  40. #endif