interface.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 _INTERFACE_H_
  20. #define _INTERFACE_H_
  21. typedef struct interface_list_s {
  22. char name[255];
  23. char alias[255];
  24. char description[255];
  25. u_int32_t flags;
  26. struct interface_list_s *next;
  27. } interface_list_t;
  28. #define INTERFACE_LIST_SIZE (80 * 80) /* 80 cols * 80 rows */
  29. char *get_interface(interface_list_t *, const char *);
  30. interface_list_t *get_interface_list(void);
  31. void list_interfaces(interface_list_t *);
  32. #endif