diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-02-29 19:52:26 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-02-29 19:52:26 +0900 |
commit | 6d7a5176bf93d8cfa196bfd33edc129835eb6492 (patch) | |
tree | 460fb64b3307d9e0cf045a3c0ac4f7af9e2663da | |
parent | aaa6004f5d9bba03091bf95550781bcc27dac1a4 (diff) |
packet: fix labeled-ipv6 nlri to return correct address-family
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | packet/bgp.go | 4 |
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{ |