#include "route_macfilter.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "../packets/packet.h"
#include "../engine/num_list.h"
#include "../decoders/decode.h"
#include "../decoders/decode_ethernet.h"
Go to the source code of this file.
Functions | |
MacRec * | GetMac (unsigned char *Mac, int Create) |
int | RouteMacFilter (int PacketSlot) |
int | RouteMacFilterAddNode (int RouteID, char *Args) |
int | InitMacFilter () |
Variables | |
MacRec | Macs [MAX_MACS] |
int | NumMacs |
NumList * | MacFilterInterfaceList |
int | EthernetDecoderID |
GlobalVars | Globals |
MacRec* GetMac | ( | unsigned char * | Mac, | |
int | Create | |||
) |
Definition at line 38 of file route_macfilter.c.
References mac_rec::Count, DEBUGPATH, mac_rec::Interface, mac_rec::MAC, Macs, MAX_MACS, NULL, and NumMacs.
Referenced by RouteMacFilter().
int InitMacFilter | ( | ) |
Definition at line 218 of file route_macfilter.c.
References route_rec::AddNode, CreateRoute(), DEBUGPATH, DECODER_NONE, EthernetDecoderID, FALSE, GetDecoderByName(), Globals, InitNumList(), LIST_TYPE_NORMAL, Macs, MAX_MACS, ROUTE_NONE, route_rec::RouteFunc, RouteMacFilter(), RouteMacFilterAddNode(), global_vars::Routes, and TRUE.
Referenced by InitRoutes().
int RouteMacFilter | ( | int | PacketSlot | ) |
Definition at line 76 of file route_macfilter.c.
References mac_rec::Count, DEBUGPATH, EthernetDecoderID, GetDataByID(), GetMac(), Globals, mac_rec::Interface, INTERFACE_BROADCAST, packet_rec::InterfaceNum, global_vars::Interfaces, IsInList(), MacFilterInterfaceList, interface_rec::Name, global_vars::Packets, packet_rec::PacketSlot, ROUTE_RESULT_CONTINUE, ROUTE_RESULT_DROP, and packet_rec::TargetInterface.
Referenced by InitMacFilter().
int RouteMacFilterAddNode | ( | int | RouteID, | |
char * | Args | |||
) |
Definition at line 166 of file route_macfilter.c.
References AddRangesString(), DEBUGPATH, FALSE, Globals, interface_rec::ID, global_vars::Interfaces, MacFilterInterfaceList, interface_rec::Name, num_alias_item::Num, and global_vars::NumInterfaces.
Referenced by InitMacFilter().
Definition at line 27 of file route_macfilter.c.
Definition at line 26 of file route_macfilter.c.
Referenced by RouteMacFilter(), and RouteMacFilterAddNode().
int NumMacs |