summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packet/bgp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index 4abc868d..5e28fdc8 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1350,6 +1350,10 @@ type LabeledIPv6AddrPrefix struct {
LabeledIPAddrPrefix
}
+func (l *LabeledIPv6AddrPrefix) AFI() uint16 {
+ return AFI_IP6
+}
+
func NewLabeledIPv6AddrPrefix(length uint8, prefix string, label MPLSLabelStack) *LabeledIPv6AddrPrefix {
return &LabeledIPv6AddrPrefix{
LabeledIPAddrPrefix{