interface.h 465 B

1234567891011121314151617181920212223
  1. #ifndef _INTERFACE_H_
  2. #define _INTERFACE_H_
  3. struct interface_list_s {
  4. char name[255];
  5. char alias[255];
  6. char description[255];
  7. u_int32_t flags;
  8. struct interface_list_s *next;
  9. };
  10. typedef struct interface_list_s interface_list_t;
  11. #define INTERFACE_LIST_SIZE (80 * 80) /* 80 cols * 80 rows */
  12. char *get_interface(interface_list_t *, const char *);
  13. interface_list_t *get_interface_list(void);
  14. void list_interfaces(interface_list_t *);
  15. #endif