xorp

FirewallGetPf Class Reference

Inheritance diagram for FirewallGetPf:
FirewallGet

List of all members.

Public Member Functions

 FirewallGetPf (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~FirewallGetPf ()
 Virtual destructor.
virtual int start (string &error_msg)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
virtual int get_table4 (list< FirewallEntry > &firewall_entry_list, string &error_msg)
 Obtain the IPv4 firewall table.
virtual int get_table6 (list< FirewallEntry > &firewall_entry_list, string &error_msg)
 Obtain the IPv6 firewall table.

Private Member Functions

int get_table (int family, list< FirewallEntry > &firewall_entry_list, string &error_msg)
 Obtain the firewall table for a specific address family.

Private Attributes

int _fd

Static Private Attributes

static const string _pf_device_name

Constructor & Destructor Documentation

FirewallGetPf::FirewallGetPf ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

int FirewallGetPf::get_table ( int  family,
list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [private]

Obtain the firewall table for a specific address family.

Parameters:
familythe address family.
firewall_entry_listthe return-by-reference list with all entries in the firewall table for the given address family.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
virtual int FirewallGetPf::get_table4 ( list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [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.

Implements FirewallGet.

virtual int FirewallGetPf::get_table6 ( list< FirewallEntry > &  firewall_entry_list,
string &  error_msg 
) [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.

Implements FirewallGet.

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

Start operation.

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

Implements FirewallGet.

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

Stop operation.

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

Implements FirewallGet.


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