BgpCapabilityBase¶
Namespace: inet::bgp
class BgpCapabilityBase
Base for a BGP capability advertised inside a Capabilities optional parameter (RFC 5492). On the wire: Capability Code (1 octet) + Capability Length (1 octet) + Capability Value (Capability Length octets).
Inheritance diagram¶
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
class |
Multiprotocol Extensions capability (RFC 4760, section 8); advertises one (AFI, SAFI) pair the speaker supports. AFI=1 IPv4, AFI=2 IPv6; SAFI=1 unicast. |
Fields¶
Name |
Type |
Description |
|---|---|---|
capabilityCode |
uint8_t |
|
capabilityLength |
uint8_t |
length (in octets) of the capability value |
Properties¶
Name |
Value |
Description |
|---|---|---|
packetData |
Source code¶
//
// Base for a BGP capability advertised inside a Capabilities optional parameter
// (RFC 5492). On the wire: Capability Code (1 octet) + Capability Length (1 octet)
// + Capability Value (Capability Length octets).
//
class BgpCapabilityBase
{
@packetData;
uint8_t capabilityCode;
uint8_t capabilityLength; // length (in octets) of the capability value
}