peapod  0.1.0
EAPOL Proxy Daemon
Data Fields
iface_t Struct Reference

Represents a network interface and its associated config. More...

#include "parser.h"

Collaboration diagram for iface_t:
Collaboration graph
[legend]

Data Fields

char name [IFNAMSIZ]
 Network interface name. More...
 
unsigned index
 Interface index. More...
 
int mtu
 Maximum Transmission Unit. More...
 
int skt
 Raw socket bound to the interface. More...
 
unsigned recv_ctr
 Number of EAPOL packets received. More...
 
unsigned send_ctr
 Number of EAPOL packets sent. More...
 
struct ingress_tingress
 Ingress options. More...
 
struct egress_tegress
 Egress options. More...
 
uint8_t promisc
 Flag: Set promiscuous mode on skt? More...
 
u_char set_mac [ETH_ALEN+1]
 A MAC address, plus a magic number. More...
 
unsigned set_mac_from
 Index of another configured interface. More...
 
struct iface_tnext
 Next node. More...
 

Detailed Description

Represents a network interface and its associated config.

Also a node in a singly linked list of struct iface_t structures.

Field Documentation

char iface_t::name[IFNAMSIZ]

Network interface name.

unsigned iface_t::index

Interface index.

int iface_t::mtu

Maximum Transmission Unit.

int iface_t::skt

Raw socket bound to the interface.

unsigned iface_t::recv_ctr

Number of EAPOL packets received.

unsigned iface_t::send_ctr

Number of EAPOL packets sent.

struct ingress_t* iface_t::ingress

Ingress options.

struct egress_t* iface_t::egress

Egress options.

uint8_t iface_t::promisc

Flag: Set promiscuous mode on skt?

u_char iface_t::set_mac[ETH_ALEN+1]

A MAC address, plus a magic number.

During program startup, the current interface's MAC address will be changed to match the first ETH_ALEN bytes of this field, and the final byte of this field will be cleared.

Note
If this is set by the parser, its final byte will be set to IFACE_SET_MAC, and the set_mac_from field will not be set.
unsigned iface_t::set_mac_from

Index of another configured interface.

When that interface receives an EAPOL packet for the first time, the current interface's MAC address will be changed to match the packet's source MAC address, and this field will be cleared.

Note
If this is set by the parser, the set_mac field will not be set.
struct iface_t* iface_t::next

Next node.


The documentation for this struct was generated from the following file: