int iface_set_flags(struct iface_t *iface)
struct iface_t * ifaces
Interface list.
Definition: peapod.c:85
void iface_reset_flags(struct iface_t *iface)
Represents a network interface and its associated config.
Definition: parser.h:82
int iface_count(struct iface_t *ifaces)
Count number of items in a list of struct iface_t.
Definition: iface.c:323
Function prototypes for parser.y, config-related magic numbers and data structures.
int iface_init(struct iface_t *ifaces, int epfd)
Create raw sockets for interfaces in a list and add them to an epoll instance.
Definition: iface.c:265
int iface_set_mac(struct iface_t *iface, u_char *src_mac)
Set the MAC address of a network interface.
Definition: iface.c:338
char * iface_strmac(u_char *mac)
Convert a MAC address to a string.
Definition: iface.c:427