From 6d7a5176bf93d8cfa196bfd33edc129835eb6492 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 29 Feb 2016 19:52:26 +0900 Subject: packet: fix labeled-ipv6 nlri to return correct address-family Signed-off-by: ISHIDA Wataru --- packet/bgp.go | 4 ++++ 1 file changed, 4 insertions(+) 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{ -- cgit v1.2.3