BgpHeader

Namespace inet::bgp

BgpHeader

class

Represents a BGPv4 message header.

Header fields modeled:

  • Marker: 16 octets (authentication)
  • Length: 2 octets (total size of the message)
  • Type: 1 octet

Extends

Name Type Description
FieldsChunk (unknown -- not in documented files)

Fields

Name Type Description
chunkLength
marker uint8_t[16]
totalLength uint16_t
type BgpType

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