xorp

FirewallGet Class Reference

Inheritance diagram for FirewallGet:
FirewallGetDummy FirewallGetIpfw2 FirewallGetNetfilter FirewallGetPf

List of all members.

Public Member Functions

 FirewallGet (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FirewallGet ()
 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 get_table4 (list< FirewallEntry > &firewall_entry_list, string &error_msg)=0
 Obtain the IPv4 firewall table.
virtual int get_table6 (list< FirewallEntry > &firewall_entry_list, string &error_msg)=0
 Obtain the IPv6 firewall table.

Protected Attributes

bool _is_running

Private Attributes

FirewallManager_firewall_manager
FeaDataPlaneManager_fea_data_plane_manager

Constructor & Destructor Documentation

FirewallGet::FirewallGet ( FeaDataPlaneManager fea_data_plane_manager) [inline]

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

FeaDataPlaneManager& FirewallGet::fea_data_plane_manager ( ) [inline]

Get the FeaDataPlaneManager instance.

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

Get the FirewallManager instance.

Returns:
the FirewallManager instance.
virtual int FirewallGet::get_table4 ( list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [pure virtual]

Obtain the IPv4 firewall table.

Parameters:
firewall_entry_listthe return-by-reference list with all entries in the IPv4 firewall table.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implemented in FirewallGetDummy, FirewallGetIpfw2, FirewallGetNetfilter, and FirewallGetPf.

virtual int FirewallGet::get_table6 ( list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [pure virtual]

Obtain the IPv6 firewall table.

Parameters:
firewall_entry_listthe return-by-reference list with all entries in the IPv6 firewall table.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implemented in FirewallGetDummy, FirewallGetIpfw2, FirewallGetNetfilter, and FirewallGetPf.

virtual bool FirewallGet::is_running ( ) const [inline, virtual]

Test whether this instance is running.

Returns:
true if the instance is running, otherwise false.
virtual int FirewallGet::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 FirewallGetDummy, FirewallGetIpfw2, FirewallGetNetfilter, and FirewallGetPf.

virtual int FirewallGet::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 FirewallGetDummy, FirewallGetIpfw2, FirewallGetNetfilter, and FirewallGetPf.


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