11 #include <linux/if_ether.h> 17 #define IFACE_SET_MAC 0xff 18 #define TCI_NO_DOT1Q 0xef 19 #define TCI_UNTOUCHED 0xff 20 #define TCI_UNTOUCHED_16 0xffff 103 u_char set_mac[ETH_ALEN + 1];
Represents a network interface and its associated config.
Definition: parser.h:82
struct filter_t * filter
Filter on egress.
Definition: parser.h:73
uint16_t type
Filter on EAPOL Packet Type.
Definition: parser.h:44
unsigned send_ctr
Number of EAPOL packets sent.
Definition: parser.h:88
struct action_t * action
Run script on egress.
Definition: parser.h:74
void parser_print_ifaces(struct iface_t *list)
uint16_t vid
Identifier.
Definition: parser.h:31
Behavior during the ingress phase for an interface.
Definition: parser.h:65
Behavior during the egress phase for an interface.
Definition: parser.h:71
struct iface_t * next
Next node.
Definition: parser.h:115
int skt
Raw socket bound to the interface.
Definition: parser.h:86
struct filter_t * filter
Filter on ingress.
Definition: parser.h:67
struct tci_t * tci
Add/edit/remove VLAN tag on egress.
Definition: parser.h:72
Scripts to execute on EAPOL Packet Type or EAP Code.
Definition: parser.h:59
802.1Q VLAN Tag Control Information
Definition: parser.h:28
struct iface_t * parse_config(const char *path, uint8_t *level)
struct action_t * action
Run script on ingress.
Definition: parser.h:66
unsigned set_mac_from
Index of another configured interface.
Definition: parser.h:114
Bitmasks for filtering on EAPOL Packet Type or EAP Code.
Definition: parser.h:43
uint8_t code
Filter on EAP Code.
Definition: parser.h:45
int mtu
Maximum Transmission Unit.
Definition: parser.h:85
unsigned recv_ctr
Number of EAPOL packets received.
Definition: parser.h:87
uint8_t dei
Drop Eligible Indicator.
Definition: parser.h:30
uint8_t promisc
Flag: Set promiscuous mode on skt?
Definition: parser.h:91
struct egress_t * egress
Egress options.
Definition: parser.h:90
uint8_t pcp
Priority Code Point.
Definition: parser.h:29
struct ingress_t * ingress
Ingress options.
Definition: parser.h:89
unsigned index
Interface index.
Definition: parser.h:84