BgpHeader
classRepresents a BGPv4 message header.
Header fields modeled:
- Marker: 16 octets (authentication)
- Length: 2 octets (total size of the message)
- Type: 1 octet
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 |
---|---|---|
FieldsChunk | class | (no description) |
Known subclasses
Name | Type | Description |
---|---|---|
BgpKeepAliveMessage | class |
Represents a BGPv4 KEEPALIVE message. |
BgpOpenMessage | class |
Represents a BGPv4 OPEN message. |
BgpUpdateMessage | class |
Represents a BGPv4 UPDATE message. |
Fields
Name | Type | Description |
---|---|---|
chunkLength | b | |
marker | uint8_t[16] | |
totalLength | uint16_t | |
type | BgpType | |
mutable | bool | |
complete | bool | |
correct | bool | |
properlyRepresented | bool | |
rawBin | string[] | |
rawHex | string[] | |
tags | RegionTagSet::cObjectRegionTag[] |
Source code
// // Represents a BGPv4 message header. // // Header fields modeled: // - Marker: 16 octets (authentication) // - Length: 2 octets (total size of the message) // - Type: 1 octet // class BgpHeader extends FieldsChunk { chunkLength = BGP_HEADER_OCTETS; uint8_t marker[16] = 0xFF; uint16_t totalLength = B(BGP_HEADER_OCTETS).get(); BgpType type = static_cast<BgpType>(-1); }File: src/inet/routing/bgpv4/bgpmessage/BgpHeader.msg