|
xorp
|
Base class for each protocol unit (node, vif, etc). More...
#include <proto_unit.hh>
Public Member Functions | |
| ProtoUnit (int init_family, xorp_module_id init_module_id) | |
| Constructor for a given address family and module ID. | |
| virtual | ~ProtoUnit () |
| Destructor. | |
| int | family () const |
| Get the address family. | |
| xorp_module_id | module_id () const |
| Get the module ID. | |
| int | proto_version () const |
| Get the current protocol version. | |
| void | set_proto_version (int v) |
| Set the current protocol version. | |
| int | proto_version_default () const |
| Get the default protocol version. | |
| void | set_proto_version_default (int v) |
| Set the default protocol version. | |
| bool | is_ipv4 () const |
| Test if the address family of the unit is IPv4. | |
| bool | is_ipv6 () const |
| Test if the address family of the unit is IPv6. | |
| const char * | module_name () const |
| Get the module name. | |
| int | comm_handler () const |
| Get the communication handler for this unit. | |
| void | set_comm_handler (int v) |
| Set the communication handler for this unit. | |
| bool | proto_is_mld6igmp () const |
| Test if the protocol is MLD6 or IGMP. | |
| bool | proto_is_igmp () const |
| Test if the protocol is IGMP. | |
| bool | proto_is_mld6 () const |
| Test if the protocol is MLD6. | |
| bool | proto_is_pimsm () const |
| Test if the protocol is PIM-SM. | |
| bool | proto_is_pimdm () const |
| Test if the protocol is PIM-DM. | |
| bool | proto_is_bgmp () const |
| Test if the protocol is BGMP. | |
| bool | proto_is_bgp () const |
| Test if the protocol is BGP. | |
| bool | proto_is_ospf () const |
| Test if the protocol is OSPF. | |
| bool | proto_is_rip () const |
| Test if the protocol is RIP. | |
| bool | proto_is_static_routes () const |
| Test if the protocol is StaticRoutes. | |
| bool | proto_is_fib2mrib () const |
| Test if the protocol is Fib2mrib. | |
Private Attributes | |
| int | _family |
| xorp_module_id | _module_id |
| int | _comm_handler |
| int | _proto_version |
| int | _proto_version_default |
| string | _module_name |
Base class for each protocol unit (node, vif, etc).
| ProtoUnit::ProtoUnit | ( | int | init_family, |
| xorp_module_id | init_module_id | ||
| ) |
Constructor for a given address family and module ID.
ProtoUnit::ProtoUnit: : The address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively).
: The module ID (XORP_MODULE_*).
Proto unit constructor.
| int ProtoUnit::comm_handler | ( | ) | const [inline] |
| int ProtoUnit::family | ( | ) | const [inline] |
Get the address family.
Reimplemented in XrlMld6igmpNode, XrlMfeaNode, XrlMld6igmpNode, and XrlPimNode.
| bool ProtoUnit::is_ipv4 | ( | ) | const [inline] |
| bool ProtoUnit::is_ipv6 | ( | ) | const [inline] |
| xorp_module_id ProtoUnit::module_id | ( | ) | const [inline] |
| const char* ProtoUnit::module_name | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_bgmp | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_bgp | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_fib2mrib | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_igmp | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_mld6 | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_mld6igmp | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_ospf | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_pimdm | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_pimsm | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_rip | ( | ) | const [inline] |
| bool ProtoUnit::proto_is_static_routes | ( | ) | const [inline] |
| int ProtoUnit::proto_version | ( | ) | const [inline] |
| int ProtoUnit::proto_version_default | ( | ) | const [inline] |
| void ProtoUnit::set_comm_handler | ( | int | v | ) | [inline] |
| void ProtoUnit::set_proto_version | ( | int | v | ) | [inline] |
Set the current protocol version.
| v | the protocol version. |
Reimplemented in Mld6igmpVif, Mld6igmpVif, and PimVif.
| void ProtoUnit::set_proto_version_default | ( | int | v | ) | [inline] |