BgpOpenMessage
classRepresents a BGPv4 OPEN message.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
BgpHeader | class |
Represents a BGPv4 message header. |
Fields
Name | Type | Description |
---|---|---|
type | BgpType | |
chunkLength | b | |
totalLength | uint16_t | |
version | uint8_t |
BGP Version, 1 octet |
myAS | uint16_t |
My Autonomous system, 2 octets |
holdTime | simtime_t |
Hold Time in seconds, 2 octets |
BGPIdentifier | Ipv4Address |
4 octets |
optionalParametersLength | unsigned short |
1 octet, total length (in bytes) of optionalParameters[] (if = 0, no optional parameters) |
optionalParameter | BgpOptionalParameterBase[] | |
marker | uint8_t[16] | |
mutable | bool | |
complete | bool | |
correct | bool | |
properlyRepresented | bool | |
rawBin | string[] | |
rawHex | string[] | |
tags | RegionTagSet::cObjectRegionTag[] |
Source code
// // Represents a BGPv4 OPEN message. // class BgpOpenMessage extends BgpHeader { type = BGP_OPEN; chunkLength = BGP_HEADER_OCTETS + BGP_OPEN_OCTETS; totalLength = B(BGP_HEADER_OCTETS + BGP_OPEN_OCTETS).get(); uint8_t version = 4; // BGP Version, 1 octet uint16_t myAS; // My Autonomous system, 2 octets simtime_t holdTime; // Hold Time in seconds, 2 octets Ipv4Address BGPIdentifier; // 4 octets unsigned short optionalParametersLength; // 1 octet, total length (in bytes) of optionalParameters[] (if = 0, no optional parameters) BgpOptionalParameterBase *optionalParameter[] @owned; }File: src/inet/routing/bgpv4/bgpmessage/BgpHeader.msg