INET Framework for OMNeT++/OMNEST
acl.h File Reference
#include <omnetpp.h>
#include "IPAddress.h"
#include "IPAddressResolver.h"
#include "IRoutingTable.h"
#include "RoutingTableAccess.h"
#include "IInterfaceTable.h"
#include "InterfaceTableAccess.h"
#include "IPDatagram.h"
#include "TCPSegment.h"
#include "UDPPacket.h"
#include "NotificationBoard.h"

Go to the source code of this file.

Classes

struct  TIP
struct  TRule
struct  TInterface
class  Stat
class  acl

Typedefs

typedef std::list< TRuleTACL
typedef std::list< TRule >
::iterator 
TACL_it

Enumerations

enum  TProtocol {
  PROT_ICMP = 1, PROT_IGMP = 2, PROT_IP = 4, PROT_TCP = 6,
  PROT_UDP = 17, PROT_EIGRP = 88, PROT_OSPF = 89, PROT_SCTP = 132,
  PROT_ICMP = 1, PROT_IGMP = 2, PROT_IP = 4, PROT_TCP = 6,
  PROT_UDP = 17, PROT_EIGRP = 88, PROT_OSPF = 89, PROT_SCTP = 132
}
enum  TPortOP {
  PORT_NDEF, PORT_EQ, PORT_NEQ, PORT_GT,
  PORT_LT, PORT_RNG, PORT_NDEF, PORT_EQ,
  PORT_NEQ, PORT_GT, PORT_LT, PORT_RNG
}

Functions

std::ostream & operator<< (std::ostream &ostr, Stat &statistics)

Variables

const bool A_PERMIT = true
const bool A_DENY = false

Typedef Documentation

typedef std::list<TRule> TACL

Definition at line 66 of file acl.h.

typedef std::list<TRule>::iterator TACL_it

Definition at line 67 of file acl.h.


Enumeration Type Documentation

enum TPortOP
Enumerator:
PORT_NDEF 
PORT_EQ 
PORT_NEQ 
PORT_GT 
PORT_LT 
PORT_RNG 
PORT_NDEF 
PORT_EQ 
PORT_NEQ 
PORT_GT 
PORT_LT 
PORT_RNG 

Definition at line 41 of file acl.h.

{
        PORT_NDEF, // pokud neni zadny port pritomen v ACL pravidlu (port je optional command)
        PORT_EQ,
        PORT_NEQ,
        PORT_GT,
        PORT_LT,
        PORT_RNG
};
enum TProtocol
Enumerator:
PROT_ICMP 
PROT_IGMP 
PROT_IP 
PROT_TCP 
PROT_UDP 
PROT_EIGRP 
PROT_OSPF 
PROT_SCTP 
PROT_ICMP 
PROT_IGMP 
PROT_IP 
PROT_TCP 
PROT_UDP 
PROT_EIGRP 
PROT_OSPF 
PROT_SCTP 

Definition at line 28 of file acl.h.

{
        PROT_ICMP = 1,
        PROT_IGMP = 2,
        PROT_IP = 4,
        PROT_TCP = 6,
        PROT_UDP = 17,
        PROT_EIGRP = 88,
        PROT_OSPF = 89,
        PROT_SCTP = 132
};

Function Documentation

std::ostream& operator<< ( std::ostream &  ostr,
Stat statistics 
) [inline]

Definition at line 83 of file acl.h.

{
    ostr << statistics.text << " (" << statistics.used << " matches)";
    return ostr;
}

Variable Documentation

const bool A_DENY = false
const bool A_PERMIT = true

Definition at line 24 of file acl.h.

Referenced by acl::getAction(), and AclContainer::getAction().