dlt.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* $Id$ */
  2. /*
  3. * Copyright (c) 2001-2010 Aaron Turner <aturner at synfin dot net>
  4. * Copyright (c) 2013-2018 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. #ifndef _DLT_H_
  20. #define _DLT_H_
  21. #include "tcpedit.h"
  22. #define TCPEDIT_DLT_OK 0
  23. #define TCPEDIT_DLT_SRC 1
  24. #define TCPEDIT_DLT_DST 2
  25. #define TCPEDIT_DLT_PROTO 4
  26. int dlt2layer2len(tcpedit_t *tcpedit, int dlt);
  27. int dltrequires(tcpedit_t *tcpedit, int dlt);
  28. int dlt2mtu(tcpedit_t *tcpedit, int dlt);
  29. int layer2len(tcpedit_t *tcpedit);
  30. #endif /* _DLT_H_ */