BgpHeader¶
Namespace: inet::bgp
class BgpHeader
Represents a BGPv4 message header.
Header fields modeled:
Marker: 16 octets (authentication)
Length: 2 octets (total size of the message)
Type: 1 octet
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
class |
Represents a BGPv4 KEEPALIVE message. |
|
class |
Represents a BGPv4 OPEN message. |
|
class |
Represents a BGPv4 UPDATE message. |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
chunkLength |
||
marker |
uint8_t[16] |
|
totalLength |
uint16_t |
|
type |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
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 = BGP_HEADER_OCTETS.get<B>();
BgpType type = static_cast<BgpType>(-1);
}