BgpOpenMessage

Namespace inet::bgp

BgpOpenMessage

class

Represents a BGPv4 OPEN message.

Extends

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

Fields

Name Type Description
type
chunkLength
totalLength
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[]

Packet operations (observed)

actionmodule
insertAtBackTcpConnection
insertAtFrontBgp

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