class PaEntry

Packet filter entry. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Members


Detailed Description

Intermediate representation of a XORP packet filter entry.

enum { IP_PROTO_ANY = 255, PORT_ANY = 0 }

 PaEntry ()

PaEntry

 PaEntry (const string& ifname, const string& vifname, const IPNet<N>& src, const IPNet<N>& dst, uint8_t proto, uint16_t sport, uint16_t dport, PaAction action)

PaEntry

 ~PaEntry ()

~PaEntry

[virtual]

const string&  ifname ()

ifname

[const]

const string&  vifname ()

vifname

[const]

const IPNet<N>&  src ()

src

[const]

const IPNet<N>&  dst ()

dst

[const]

uint8_t  proto ()

proto

[const]

uint16_t  sport ()

sport

[const]

uint16_t  dport ()

dport

[const]

PaAction  action ()

action

[const]

inline void  zero ()

zero

Reset all members.

inline bool  match (const PaEntry<N>& e)

match

[const]

string  str ()

str

[const]

Example: src = 127.0.0.1/32 dst = 0.0.0.0/0 ifname = fxp0 proto = 255 sport = 0 dport = 0 action = drop

Returns: A string representation of the entry.

string _ifname

_ifname

[protected]

string _vifname

_vifname

[protected]

IPNet<N> _src

_src

[protected]

IPNet<N> _dst

_dst

[protected]

uint8_t _proto

_proto

[protected]

uint16_t _sport

_sport

[protected]

uint16_t _dport

_dport

[protected]

PaAction _action

_action

[protected]


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:05 2005, using kdoc $.