class XrlPacketAclTargetBase


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Methods

Protected Members


Detailed Description

XrlCmdMap* _cmds

_cmds

[protected]

 XrlPacketAclTargetBase (XrlCmdMap* cmds = 0)

XrlPacketAclTargetBase

Constructor.

Parameters:

cmdsan 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:

cmdspointer 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:

Get name of Xrl Target

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:

Get status of Xrl Target

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:

tidthe 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:

tidthe 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:

tidthe 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:

tidthe transaction ID for this operation.
ifnameName of the interface where this filter is to be applied.
vifnameName of the vif where this filter is to be applied.
srcSource IPv4 address with network prefix.
dstDestination IPv4 address with network prefix.
protoIP protocol number for match (0-255, 255 is wildcard).
sportSource TCP/UDP port (0-65535, 0 is wildcard).
dportDestination TCP/UDP port (0-65535, 0 is wildcard).
actionAction 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:

tidthe transaction ID for this operation.
ifnameName of the interface where this filter is to be deleted.
vifnameName of the vif where this filter is to be deleted.
srcSource IPv4 address with network prefix.
dstDestination IPv4 address with network prefix.
protoIP protocol number for match (0-255, 255 is wildcard).
sportSource TCP/UDP port (0-65535, 0 is wildcard).
dportDestination 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:

tidthe 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:

tidthe transaction ID for this operation.
ifnameName of the interface where this filter is to be applied.
vifnameName of the vif where this filter is to be applied.
srcSource IPv6 address with network prefix.
dstDestination IPv6 address with network prefix.
protoIP protocol number for match (0-255, 255 is wildcard).
sportSource TCP/UDP port (0-65535, 0 is wildcard).
dportDestination TCP/UDP port (0-65535, 0 is wildcard).
actionAction 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:

tidthe transaction ID for this operation.
ifnameName of the interface where this filter is to be deleted.
vifnameName of the vif where this filter is to be deleted.
srcSource IPv6 address with network prefix.
dstDestination IPv6 address with network prefix.
protoIP protocol number for match (0-255, 255 is wildcard).
sportSource TCP/UDP port (0-65535, 0 is wildcard).
dportDestination 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:

tidthe 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]


Generated by: pavlin on possum.icir.org on Wed Mar 21 11:23:08 2007, using kdoc $.