fakepcapnav.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifdef HAVE_PCAPNAV
  21. #include <pcapnav.h>
  22. #define _FAKEPCAPNAV_H_
  23. #endif
  24. #include "defines.h"
  25. #include "config.h"
  26. #ifndef HAVE_PCAPNAV
  27. typedef struct pcapnav pcapnav_t;
  28. struct pcapnav {
  29. pcap_t *pcap;
  30. };
  31. void pcapnav_init(void);
  32. pcapnav_t *pcapnav_open_offline(const char *);
  33. void pcapnav_close(pcapnav_t *);
  34. pcap_t *pcapnav_pcap(pcapnav_t *);
  35. #endif