class ProtoUnit

Base class for each protocol unit (node, vif, etc). More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 ProtoUnit (int init_family, xorp_module_id init_module_id)

ProtoUnit

Constructor for a given address family and module ID.

Parameters:

init_familythe address family.
init_module_idthe module ID (xorp_module_id).
 ~ProtoUnit ()

~ProtoUnit

[virtual]

Destructor

int  family ()

family

[const]

Get the address family.

Returns: the address family (e.g., AF_INET or AF_INET6 for IPv4 and IPv6 respectively).

xorp_module_id  module_id ()

module_id

[const]

Get the module ID.

Returns: the module ID (xorp_module_id).

int  proto_version ()

proto_version

[const]

Get the current protocol version.

Returns: the current protocol version.

void  set_proto_version (int v)

set_proto_version

Set the current protocol version.

Parameters:

vthe protocol version.
int  proto_version_default ()

proto_version_default

[const]

Get the default protocol version.

Returns: the default protocol version.

void  set_proto_version_default (int v)

set_proto_version_default

Set the default protocol version.

Parameters:

vthe default protocol version.
bool  is_ipv4 ()

is_ipv4

[const]

Test if the address family of the unit is IPv4.

Returns: true if the address family of the unit is IPv4.

bool  is_ipv6 ()

is_ipv6

[const]

Test if the address family of the unit is IPv6.

Returns: true if the address family of the unit is IPv6.

const char * module_name ()

module_name

[const]

Get the module name.

TODO: temporary, all names are listed in "_xorp_module_name[][]" in proto_unit.cc.

Returns: C-style string with the module name.

int  comm_handler ()

comm_handler

[const]

Get the communication handler for this unit.

Note: currently, the purpose of the communication handler is undefined.

Returns: the communication handler for this unit.

void  set_comm_handler (int v)

set_comm_handler

Set the communication handler for this unit.

Parameters:

vthe communication handler to set for this unit.
bool  proto_is_mld6igmp ()

proto_is_mld6igmp

[const]

Test if the protocol is MLD6 or IGMP.

Returns: true if the protocol is MLD6 or IGMP.

bool  proto_is_igmp ()

proto_is_igmp

[const]

Test if the protocol is IGMP.

Returns: true if the protocol is IGMP.

bool  proto_is_mld6 ()

proto_is_mld6

[const]

Test if the protocol is MLD6.

Returns: true if the protocol is MLD6.

bool  proto_is_pimsm ()

proto_is_pimsm

[const]

Test if the protocol is PIM-SM.

Returns: true if the protocol is PIM-SM.

bool  proto_is_pimdm ()

proto_is_pimdm

[const]

Test if the protocol is PIM-DM.

Returns: true if the protocol is PIM-DM.

bool  proto_is_bgmp ()

proto_is_bgmp

[const]

Test if the protocol is BGMP.

Returns: true if the protocol is BGMP.

bool  proto_is_bgp ()

proto_is_bgp

[const]

Test if the protocol is BGP.

Returns: true if the protocol is BGP.

bool  proto_is_ospf ()

proto_is_ospf

[const]

Test if the protocol is OSPF.

Returns: true if the protocol is OSPF.

bool  proto_is_rip ()

proto_is_rip

[const]

Test if the protocol is RIP.

Returns: true if the protocol is RIP.

bool  proto_is_static_routes ()

proto_is_static_routes

[const]

Test if the protocol is StaticRoutes.

Returns: true if the protocol is StaticRoutes

bool  proto_is_fib2mrib ()

proto_is_fib2mrib

[const]

Test if the protocol is Fib2mrib.

Returns: true if the protocol is Fib2mrib


Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:13 2004, using kdoc $.