9 #include <netinet/ether.h>
15 #define PASSWORD_MAX 32
20 int sock; /* socket */
21 struct sockaddr_in local; /* local address & port */
22 struct in_addr brd; /* broadcast address */
23 char iface[IFNAMSIZ]; /* interface */
24 struct timespec timeout; /* timeout */
25 struct ether_addr localmac; /* local MAC address */
26 bool keepbroad; /* keep broadcasting */
27 bool globalbroad; /* use global broadcast address (255.255.255.255) */
28 /* switch properties */
29 bool encrypt_pass; /* switch uses password "encryption" */
30 char password[PASSWORD_MAX]; /* password to use to login on switches */
31 struct swi_attr *swi_tab; /* array of detected switches */
32 int swi_count; /* number of detected switches */
33 struct swi_attr *current; /* administred switch */
34 int seq; /* sequence number for packets */