MCPcopy
hub / github.com/osrg/gobgp / MUPExtended

Struct MUPExtended

pkg/packet/bgp/mup.go:12–16  ·  view source on GitHub ↗

MUPExtended represents BGP MUP Extended Community as described in https://datatracker.ietf.org/doc/html/draft-mpmz-bess-mup-safi-00#section-3.2

Source from the content-addressed store, hash-verified

10// MUPExtended represents BGP MUP Extended Community as described in
11// https://datatracker.ietf.org/doc/html/draft-mpmz-bess-mup-safi-00#section-3.2
12type MUPExtended struct {
13 SubType ExtendedCommunityAttrSubType
14 SegmentID2 uint16
15 SegmentID4 uint32
16}
17
18func (e *MUPExtended) Serialize() ([]byte, error) {
19 buf := make([]byte, 8)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected