class PaPfBackend

PF ACL backend interface. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

Concrete class defining a backend which drives PF on [Free|Open|Net]BSD.

PF is closer to IPF than IPFW2 in that it has a single inactive ruleset which is used to install rules before being swapped in by its own commit command.

 PaPfBackend ()
throw(PaInvalidBackendException)

PaPfBackend

 ~PaPfBackend ()

~PaPfBackend

[virtual]

typedef vector<uint32_t> RuleBuf

RuleBuf

typedef map<uint16_t, RuleBuf> RulesetDB

RulesetDB

typedef map<uint8_t, Snapshot4* > Snapshot4DB

Snapshot4DB

typedef bitset<MAX_RULESETS> RulesetGroup

RulesetGroup

const char*  get_name ()

get_name

[const]

Reimplemented from PaBackend.

const char*  get_version ()

get_version

[const]

Reimplemented from PaBackend.

bool  push_entries4 (const PaSnapshot4* snap)

push_entries4

Reimplemented from PaBackend.

bool  delete_all_entries4 ()

delete_all_entries4

Reimplemented from PaBackend.

const PaBackend::Snapshot4Base*  create_snapshot4 ()

create_snapshot4

Reimplemented from PaBackend.

bool  restore_snapshot4 (const PaBackend::Snapshot4Base* snap)

restore_snapshot4

Reimplemented from PaBackend.

bool  push_entries6 (const PaSnapshot6* snap)

push_entries6

Reimplemented from PaBackend.

bool  delete_all_entries6 ()

delete_all_entries6

Reimplemented from PaBackend.

const PaBackend::Snapshot6Base*  create_snapshot6 ()

create_snapshot6

[const]

Reimplemented from PaBackend.

bool  restore_snapshot6 (const PaBackend::Snapshot6Base* snap)

restore_snapshot6

Reimplemented from PaBackend.

bool  set_pf_enabled (bool enable)

set_pf_enabled

[protected]

u_int32_t  start_transaction ()

start_transaction

[protected]

void  abort_transaction (u_int32_t ticket)

abort_transaction

[protected]

bool  commit_transaction (u_int32_t ticket)

commit_transaction

[protected]

bool  transcribe_and_add_rule4 (const PaEntry4& entry, u_int32_t ticket)

transcribe_and_add_rule4

[protected]

inline Snapshot4**  get_snapshotdb ()

get_snapshotdb

Snapshot4* _snapshot4db[MAX_RULESETS]

_snapshot4db[MAX_RULESETS]

[protected]

int _fd

_fd

[protected]


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:19 2006, using kdoc $.