awds::SrcFilter Class Reference

Firewall filter, based on the source of the packet. More...

#include <SrcFilter.h>

Inheritance diagram for awds::SrcFilter:

awds::Firewall

List of all members.

Public Member Functions

int addRules (int argc, const char *const *argv, std::ostream &os)
 add rules
void dumpRules (std::ostream &os) const
 dump the currently acrtive rules
 SrcFilter (awds::Topology *topology)
 constructor
virtual bool check_packet (awds::BasePacket *p)
 decide, if a packet is accepted
virtual ~SrcFilter ()

Static Public Member Functions

static int cmd_filter (awds::ShellClient &sc, void *data, int argc, char **argv)
 callback for the shell


Detailed Description

Firewall filter, based on the source of the packet.

Constructor & Destructor Documentation

SrcFilter::~SrcFilter (  )  [virtual]

destructor


Member Function Documentation

int SrcFilter::addRules ( int  argc,
const char *const *  argv,
std::ostream &  os 
)

add rules

This is a parser for adding new rules.

Parameters:
argc the number of arguments.
argv the array of arguments.
os the stream to write the output to.
Returns:
0 on success, other values otherwise.

References awds::RTopology::getNodeByName().

bool SrcFilter::check_packet ( awds::BasePacket p  )  [virtual]

decide, if a packet is accepted

Parameters:
p the packet to check.
Returns:
true, if accepted. false otherwise.

Implements awds::Firewall.

References awds::BasePacket::getType().

void SrcFilter::dumpRules ( std::ostream &  os  )  const

dump the currently acrtive rules

Use this function to dump the currently avtive rules to the screen.

Parameters:
os the stream to write the output to.


The documentation for this class was generated from the following files:

Generated on Fri Mar 27 13:58:27 2009 for AWDS by  doxygen 1.5.8