xorp

FirewallSetIpfw2 Class Reference

Inheritance diagram for FirewallSetIpfw2:
FirewallSet

List of all members.

Public Member Functions

 FirewallSetIpfw2 (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FirewallSetIpfw2 ()
 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.

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

int _s4
uint32_t _saved_autoinc_step

Constructor & Destructor Documentation

FirewallSetIpfw2::FirewallSetIpfw2 ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

virtual int FirewallSetIpfw2::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.
virtual int FirewallSetIpfw2::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.

virtual int FirewallSetIpfw2::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.

virtual int FirewallSetIpfw2::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.
virtual int FirewallSetIpfw2::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.
virtual int FirewallSetIpfw2::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.

virtual int FirewallSetIpfw2::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.

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

Start operation.

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

Implements FirewallSet.

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

Stop operation.

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

Implements FirewallSet.

virtual int FirewallSetIpfw2::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 file:
 All Classes Namespaces Functions Variables Typedefs Enumerations