XrlCmdMap* _cmds | _cmds |
[protected]
XrlPacketAclTargetBase (XrlCmdMap* cmds = 0)
| XrlPacketAclTargetBase |
Constructor.
Parameters:
cmds | an XrlCmdMap that the commands associated with the target should be added to. This is typically the XrlRouter associated with the target. |
~XrlPacketAclTargetBase ()
| ~XrlPacketAclTargetBase |
[virtual]
Destructor.
Dissociates instance commands from command map.
bool set_command_map (XrlCmdMap* cmds)
| set_command_map |
Set command map.
Parameters:
cmds | pointer to command map to associate commands with. This argument is typically a pointer to the XrlRouter associated with the target. |
Returns: true on success, false if cmds is null or a command map has already been supplied.
inline const string& name ()
| name |
[const]
Get Xrl instance name associated with command map.
inline const char* version ()
| version |
[const]
Get version string of instance.
XrlCmdError common_0_1_get_target_name (
string& name)
| common_0_1_get_target_name |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_get_version (
string& version)
| common_0_1_get_version |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get version string from Xrl Target
XrlCmdError common_0_1_get_status (
uint32_t& status,
string& reason)
| common_0_1_get_status |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_shutdown ()
| common_0_1_shutdown |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Request clean shutdown of Xrl Target
XrlCmdError packet_acl_0_1_get_backend (
string& name)
| packet_acl_0_1_get_backend |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get the name of the ACL backend currently in use.
XrlCmdError packet_acl_0_1_set_backend (
const string& name)
| packet_acl_0_1_set_backend |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Set the underlying packet ACL backend type in use. NOTE: If XORP rules currently exist, this operation will perform an implicit flush and reload when switching to the new provider.
XrlCmdError packet_acl_0_1_get_version (
string& version)
| packet_acl_0_1_get_version |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get the underlying packet ACL provider version in use.
XrlCmdError packet_acl_0_1_start_transaction (
uint32_t& tid)
| packet_acl_0_1_start_transaction |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Start ACL transaction.
Parameters:
tid | the transaction ID returned by this operation. |
XrlCmdError packet_acl_0_1_commit_transaction (
const uint32_t& tid)
| packet_acl_0_1_commit_transaction |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Commit ACL transaction.
Parameters:
tid | the transaction ID for this operation. |
XrlCmdError packet_acl_0_1_abort_transaction (
const uint32_t& tid)
| packet_acl_0_1_abort_transaction |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Abort ACL transaction.
Parameters:
tid | the transaction ID for this operation. |
XrlCmdError packet_acl_0_1_add_entry4 (
const uint32_t& tid,
const string& ifname,
const string& vifname,
const IPv4Net& src,
const IPv4Net& dst,
const uint32_t& proto,
const uint32_t& sport,
const uint32_t& dport,
const string& action)
| packet_acl_0_1_add_entry4 |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Add an IPv4 family ACL entry.
Parameters:
tid | the transaction ID for this operation. |
ifname | Name of the interface where this filter is to be applied. |
vifname | Name of the vif where this filter is to be applied. |
src | Source IPv4 address with network prefix. |
dst | Destination IPv4 address with network prefix. |
proto | IP protocol number for match (0-255, 255 is wildcard). |
sport | Source TCP/UDP port (0-65535, 0 is wildcard). |
dport | Destination TCP/UDP port (0-65535, 0 is wildcard). |
action | Action taken when this filter is matched. |
XrlCmdError packet_acl_0_1_delete_entry4 (
const uint32_t& tid,
const string& ifname,
const string& vifname,
const IPv4Net& src,
const IPv4Net& dst,
const uint32_t& proto,
const uint32_t& sport,
const uint32_t& dport)
| packet_acl_0_1_delete_entry4 |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Delete an IPv4 family ACL entry.
Parameters:
tid | the transaction ID for this operation. |
ifname | Name of the interface where this filter is to be deleted. |
vifname | Name of the vif where this filter is to be deleted. |
src | Source IPv4 address with network prefix. |
dst | Destination IPv4 address with network prefix. |
proto | IP protocol number for match (0-255, 255 is wildcard). |
sport | Source TCP/UDP port (0-65535, 0 is wildcard). |
dport | Destination TCP/UDP port (0-65535, 0 is wildcard). |
XrlCmdError packet_acl_0_1_delete_all_entries4 (
const uint32_t& tid)
| packet_acl_0_1_delete_all_entries4 |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Delete all IPv4 family ACL entries.
Parameters:
tid | the transaction ID for this operation. |
XrlCmdError packet_acl_0_1_add_entry6 (
const uint32_t& tid,
const string& ifname,
const string& vifname,
const IPv6Net& src,
const IPv6Net& dst,
const uint32_t& proto,
const uint32_t& sport,
const uint32_t& dport,
const string& action)
| packet_acl_0_1_add_entry6 |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Add an IPv6 family ACL entry.
Parameters:
tid | the transaction ID for this operation. |
ifname | Name of the interface where this filter is to be applied. |
vifname | Name of the vif where this filter is to be applied. |
src | Source IPv6 address with network prefix. |
dst | Destination IPv6 address with network prefix. |
proto | IP protocol number for match (0-255, 255 is wildcard). |
sport | Source TCP/UDP port (0-65535, 0 is wildcard). |
dport | Destination TCP/UDP port (0-65535, 0 is wildcard). |
action | Action taken when this filter is matched. |
XrlCmdError packet_acl_0_1_delete_entry6 (
const uint32_t& tid,
const string& ifname,
const string& vifname,
const IPv6Net& src,
const IPv6Net& dst,
const uint32_t& proto,
const uint32_t& sport,
const uint32_t& dport)
| packet_acl_0_1_delete_entry6 |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Delete an IPv6 family ACL entry.
Parameters:
tid | the transaction ID for this operation. |
ifname | Name of the interface where this filter is to be deleted. |
vifname | Name of the vif where this filter is to be deleted. |
src | Source IPv6 address with network prefix. |
dst | Destination IPv6 address with network prefix. |
proto | IP protocol number for match (0-255, 255 is wildcard). |
sport | Source TCP/UDP port (0-65535, 0 is wildcard). |
dport | Destination TCP/UDP port (0-65535, 0 is wildcard). |
XrlCmdError packet_acl_0_1_delete_all_entries6 (
const uint32_t& tid)
| packet_acl_0_1_delete_all_entries6 |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Delete all IPv6 family ACL entries.
Parameters:
tid | the transaction ID for this operation. |
XrlCmdError packet_acl_0_1_get_entry_list_start4 (
uint32_t& token,
bool& more)
| packet_acl_0_1_get_entry_list_start4 |
[protected pure virtual]
XrlCmdError packet_acl_0_1_get_entry_list_next4 (
const uint32_t& token,
string& ifname,
string& vifname,
IPv4Net& src,
IPv4Net& dst,
uint32_t& proto,
uint32_t& sport,
uint32_t& dport,
string& action,
bool& more)
| packet_acl_0_1_get_entry_list_next4 |
[protected pure virtual]