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

Function NewMPLSLabelStack

pkg/packet/bgp/bgp.go:1911–1916  ·  view source on GitHub ↗
(labels ...uint32)

Source from the content-addressed store, hash-verified

1909}
1910
1911func NewMPLSLabelStack(labels ...uint32) *MPLSLabelStack {
1912 if len(labels) == 0 {
1913 labels = []uint32{0}
1914 }
1915 return &MPLSLabelStack{labels}
1916}
1917
1918func ParseMPLSLabelStack(buf string) (*MPLSLabelStack, error) {
1919 elems := strings.Split(buf, "/")

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…