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