peapod  0.1.0
EAPOL Proxy Daemon
Macros | Functions
process.h File Reference

Function prototypes for process.c, packet direction symbols. More...

#include "iface.h"
Include dependency graph for process.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PROCESS_INGRESS   0
 Ingress phase. More...
 
#define PROCESS_EGRESS   1
 Egress phase. More...
 

Functions

int process_filter (struct peapod_packet packet)
 Determine if an EAPOL packet should be filtered (dropped) More...
 
void process_script (struct peapod_packet packet)
 A wrapper for script() More...
 

Detailed Description

Function prototypes for process.c, packet direction symbols.

Macro Definition Documentation

#define PROCESS_INGRESS   0

Ingress phase.

#define PROCESS_EGRESS   1

Egress phase.

Function Documentation

int process_filter ( struct peapod_packet  packet)

Determine if an EAPOL packet should be filtered (dropped)

packet should contain enough information to determine whether an ingress or egress filter should be applied.

Parameters
packetA struct peapod_packet representing an EAPOL packet
Returns
1 if the EAPOL packet should be filtered, or 0 if not
void process_script ( struct peapod_packet  packet)

A wrapper for script()

packet should contain enough information to determine whether an ingress or egress script should be executed, upon which script() is called with the appropriate parameters extracted from packet.

Parameters
packetA struct peapod_packet representing an EAPOL packet