BgpUpdateNlri6

Namespace: inet::bgp

struct BgpUpdateNlri6

Address-family-generic NLRI used by the MP-BGP attributes (RFC 4760). The prefix is an L3Address so the same structure carries IPv6 (and, in principle, other AFI) reachability.

Usage diagram

Fields

Name

Type

Description

length

uint8_t

length of prefix in bits, 1 octet

prefix

L3Address

1..N octets on the wire, based on length ((length + 7) / 8)

Properties

Name

Value

Description

packetData

Source code

// Address-family-generic NLRI used by the MP-BGP attributes (RFC 4760). The prefix is an
// L3Address so the same structure carries IPv6 (and, in principle, other AFI) reachability.
struct BgpUpdateNlri6
{
    @packetData;
    uint8_t length = 0; // length of prefix in bits, 1 octet
    L3Address prefix;   // 1..N octets on the wire, based on length ((length + 7) / 8)
}

File: src/inet/routing/bgpv4/bgpmessage/BgpHeader.msg