xorp

FirewallSet Class Reference

Inheritance diagram for FirewallSet:
FirewallSetDummy FirewallSetIpfw2 FirewallSetNetfilter FirewallSetPf

List of all members.

Public Member Functions

 FirewallSet (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FirewallSet ()
 Virtual destructor.
FirewallManagerfirewall_manager ()
 Get the FirewallManager instance.
FeaDataPlaneManagerfea_data_plane_manager ()
 Get the FeaDataPlaneManager instance.
virtual bool is_running () const
 Test whether this instance is running.
virtual int start (string &error_msg)=0
 Start operation.
virtual int stop (string &error_msg)=0
 Stop operation.
virtual int update_entries (const list< FirewallEntry > &added_entries, const list< FirewallEntry > &replaced_entries, const list< FirewallEntry > &deleted_entries, string &error_msg)=0
 Update the firewall entries by pushing them into the underlying system.
virtual int set_table4 (const list< FirewallEntry > &firewall_entry_list, string &error_msg)=0
 Set the IPv4 firewall table.
virtual int delete_all_entries4 (string &error_msg)=0
 Delete all entries in the IPv4 firewall table.
virtual int set_table6 (const list< FirewallEntry > &firewall_entry_list, string &error_msg)=0
 Set the IPv6 firewall table.
virtual int delete_all_entries6 (string &error_msg)=0
 Delete all entries in the IPv6 firewall table.

Protected Attributes

bool _is_running

Private Attributes

FirewallManager_firewall_manager
FeaDataPlaneManager_fea_data_plane_manager

Constructor & Destructor Documentation

FirewallSet::FirewallSet ( FeaDataPlaneManager fea_data_plane_manager) [inline]

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

virtual int FirewallSet::delete_all_entries4 ( string &  error_msg) [pure virtual]

Delete all entries in the IPv4 firewall table.

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

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.

virtual int FirewallSet::delete_all_entries6 ( string &  error_msg) [pure virtual]

Delete all entries in the IPv6 firewall table.

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

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.

FeaDataPlaneManager& FirewallSet::fea_data_plane_manager ( ) [inline]

Get the FeaDataPlaneManager instance.

Returns:
the FeaDataPlaneManager instance.
FirewallManager& FirewallSet::firewall_manager ( ) [inline]

Get the FirewallManager instance.

Returns:
the FirewallManager instance.
virtual bool FirewallSet::is_running ( ) const [inline, virtual]

Test whether this instance is running.

Returns:
true if the instance is running, otherwise false.
virtual int FirewallSet::set_table4 ( const list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [pure 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.

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.

virtual int FirewallSet::set_table6 ( const list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [pure 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.

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.

virtual int FirewallSet::start ( string &  error_msg) [pure virtual]

Start operation.

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

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.

virtual int FirewallSet::stop ( string &  error_msg) [pure virtual]

Stop operation.

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

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.

virtual int FirewallSet::update_entries ( const list< FirewallEntry > &  added_entries,
const list< FirewallEntry > &  replaced_entries,
const list< FirewallEntry > &  deleted_entries,
string &  error_msg 
) [pure 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.

Implemented in FirewallSetDummy, FirewallSetIpfw2, FirewallSetNetfilter, and FirewallSetPf.


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