xorp

FirewallSetDummy Class Reference

Inheritance diagram for FirewallSetDummy:
FirewallSet

List of all members.

Public Types

typedef map< uint32_t,
FirewallEntry
FirewallTrie

Public Member Functions

 FirewallSetDummy (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FirewallSetDummy ()
 Virtual destructor.
virtual int start (string &error_msg)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
virtual int update_entries (const list< FirewallEntry > &added_entries, const list< FirewallEntry > &replaced_entries, const list< FirewallEntry > &deleted_entries, string &error_msg)
 Update the firewall entries by pushing them into the underlying system.
virtual int set_table4 (const list< FirewallEntry > &firewall_entry_list, string &error_msg)
 Set the IPv4 firewall table.
virtual int delete_all_entries4 (string &error_msg)
 Delete all entries in the IPv4 firewall table.
virtual int set_table6 (const list< FirewallEntry > &firewall_entry_list, string &error_msg)
 Set the IPv6 firewall table.
virtual int delete_all_entries6 (string &error_msg)
 Delete all entries in the IPv6 firewall table.
FirewallTrie & firewall_entries4 ()
 Get a reference to the trie with the IPv4 firewall entries.
FirewallTrie & firewall_entries6 ()
 Get a reference to the trie with the IPv6 firewall entries.

Private Member Functions

virtual int add_entry (const FirewallEntry &firewall_entry, string &error_msg)
 Add a single firewall entry.
virtual int replace_entry (const FirewallEntry &firewall_entry, string &error_msg)
 Replace a single firewall entry.
virtual int delete_entry (const FirewallEntry &firewall_entry, string &error_msg)
 Delete a single firewall entry.

Private Attributes

FirewallTrie _firewall_entries4
FirewallTrie _firewall_entries6

Constructor & Destructor Documentation

FirewallSetDummy::FirewallSetDummy ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

int FirewallSetDummy::add_entry ( const FirewallEntry firewall_entry,
string &  error_msg 
) [private, virtual]

Add a single firewall entry.

Parameters:
firewall_entrythe entry to add.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
int FirewallSetDummy::delete_all_entries4 ( string &  error_msg) [virtual]

Delete all entries in the IPv4 firewall table.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.

int FirewallSetDummy::delete_all_entries6 ( string &  error_msg) [virtual]

Delete all entries in the IPv6 firewall table.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.

int FirewallSetDummy::delete_entry ( const FirewallEntry firewall_entry,
string &  error_msg 
) [private, virtual]

Delete a single firewall entry.

Parameters:
firewall_entrythe entry to delete.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
FirewallTrie& FirewallSetDummy::firewall_entries4 ( ) [inline]

Get a reference to the trie with the IPv4 firewall entries.

Returns:
a reference to the trie with the IPv4 firewall entries.
FirewallTrie& FirewallSetDummy::firewall_entries6 ( ) [inline]

Get a reference to the trie with the IPv6 firewall entries.

Returns:
a reference to the trie with the IPv6 firewall entries.
int FirewallSetDummy::replace_entry ( const FirewallEntry firewall_entry,
string &  error_msg 
) [private, virtual]

Replace a single firewall entry.

Parameters:
firewall_entrythe replacement entry.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
int FirewallSetDummy::set_table4 ( const list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [virtual]

Set the IPv4 firewall table.

Parameters:
firewall_entry_listthe list with all entries to install into the IPv4 firewall table.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.

int FirewallSetDummy::set_table6 ( const list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [virtual]

Set the IPv6 firewall table.

Parameters:
firewall_entry_listthe list with all entries to install into the IPv6 firewall table.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.

int FirewallSetDummy::start ( string &  error_msg) [virtual]

Start operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.

int FirewallSetDummy::stop ( string &  error_msg) [virtual]

Stop operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.

int FirewallSetDummy::update_entries ( const list< FirewallEntry > &  added_entries,
const list< FirewallEntry > &  replaced_entries,
const list< FirewallEntry > &  deleted_entries,
string &  error_msg 
) [virtual]

Update the firewall entries by pushing them into the underlying system.

Parameters:
added_entriesthe entries to add.
replaced_entriesthe entries to replace.
deleted_entriesthe deleted entries.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FirewallSet.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations