Classes |
| class | BrowseState |
Public Member Functions |
| | FirewallManager (FeaNode &fea_node, const IfTree &iftree) |
| | Constructor.
|
|
virtual | ~FirewallManager () |
| | Virtual destructor.
|
| EventLoop & | eventloop () |
| | Get a reference to the EventLoop instance.
|
| const IfTree & | iftree () const |
| | Get a reference to the interface configuration.
|
| ProcessStatus | status (string &reason) const |
| | Get the status code.
|
| int | start_transaction (uint32_t &tid, string &error_msg) |
| | Start firewall-related transaction.
|
| int | commit_transaction (uint32_t tid, string &error_msg) |
| | Commit firewall-related transaction.
|
| int | abort_transaction (uint32_t tid, string &error_msg) |
| | Abort firewall-related transaction.
|
| int | add_transaction_operation (uint32_t tid, const TransactionManager::Operation &op, string &error_msg) |
| | Add operation to firewall-related transaction.
|
| int | register_firewall_get (FirewallGet *firewall_get, bool is_exclusive) |
| | Register FirewallGet plugin.
|
| int | unregister_firewall_get (FirewallGet *firewall_get) |
| | Unregister FirewallGet plugin.
|
| int | register_firewall_set (FirewallSet *firewall_set, bool is_exclusive) |
| | Register FirewallSet plugin.
|
| int | unregister_firewall_set (FirewallSet *firewall_set) |
| | Unregister FirewallSet plugin.
|
| int | start (string &error_msg) |
| | Start operation.
|
| int | stop (string &error_msg) |
| | Stop operation.
|
| int | add_entry (const FirewallEntry &firewall_entry, string &error_msg) |
| | Add a single firewall entry that will be pushed into the underlying system.
|
| int | replace_entry (const FirewallEntry &firewall_entry, string &error_msg) |
| | Replace a single firewall entry that will be pushed into the underlying system.
|
| int | delete_entry (const FirewallEntry &firewall_entry, string &error_msg) |
| | Delete a single firewall entry that will be pushed into the underlying system.
|
| int | set_table4 (const list< FirewallEntry > &firewall_entry_list, string &error_msg) |
| | Set the IPv4 firewall table.
|
| int | set_table6 (const list< FirewallEntry > &firewall_entry_list, string &error_msg) |
| | Set the IPv6 firewall table.
|
| int | delete_all_entries4 (string &error_msg) |
| | Delete all entries in the IPv4 firewall table.
|
| int | delete_all_entries6 (string &error_msg) |
| | Delete all entries in the IPv6 firewall table.
|
| int | get_table4 (list< FirewallEntry > &firewall_entry_list, string &error_msg) |
| | Obtain the IPv4 firewall table.
|
| int | get_table6 (list< FirewallEntry > &firewall_entry_list, string &error_msg) |
| | Obtain the IPv6 firewall table.
|
| int | get_entry_list_start4 (uint32_t &token, bool &more, string &error_msg) |
| | Get a token for a list of IPv4 firewall entries.
|
| int | get_entry_list_start6 (uint32_t &token, bool &more, string &error_msg) |
| | Get a token for a list of IPv6 firewall entries.
|
| int | get_entry_list_next4 (uint32_t token, FirewallEntry &firewall_entry, bool &more, string &error_msg) |
| | Get the next item in a list of IPv4 firewall entries.
|
| int | get_entry_list_next6 (uint32_t token, FirewallEntry &firewall_entry, bool &more, string &error_msg) |
| | Get the next item in a list of IPv6 firewall entries.
|
| void | delete_browse_state (uint32_t token) |
| | Delete browse state for a particular token.
|
Private Member Functions |
| int | update_entries (string &error_msg) |
| | Update the firewall entries by pushing them into the underlying system.
|
|
void | generate_token () |
| | Generate a new token that is available.
|
Private Attributes |
|
FeaNode & | _fea_node |
|
EventLoop & | _eventloop |
|
const IfTree & | _iftree |
|
FirewallTransactionManager * | _ftm |
|
list< FirewallGet * > | _firewall_gets |
|
list< FirewallSet * > | _firewall_sets |
|
uint32_t | _next_token |
|
map< uint32_t, BrowseState * > | _browse_db |
|
list< FirewallEntry > | _added_entries |
|
list< FirewallEntry > | _replaced_entries |
|
list< FirewallEntry > | _deleted_entries |
|
bool | _is_running |
Firewall configuration manager.