diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-11 08:58:17 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-04-20 13:14:09 +0900 |
commit | 427f0fc5f7922dee4ef11bf3c629134769227654 (patch) | |
tree | 3ca07189229f4039884dd872a8e3441b303bf93a | |
parent | d6857be8f040d78aada3648ba4535e2bffbdc9c6 (diff) |
bgp: fix bug of NewEndOfRib()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | packet/bgp/bgp.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 8bfea717..9680c08d 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -6594,7 +6594,13 @@ func NewEndOfRib(family RouteFamily) *BGPMessage { return NewBGPUpdateMessage(nil, nil, nil) } else { afi, safi := RouteFamilyToAfiSafi(family) + t := BGP_ATTR_TYPE_MP_UNREACH_NLRI unreach := &PathAttributeMpUnreachNLRI{ + PathAttribute: PathAttribute{ + Flags: pathAttrFlags[t], + Type: t, + Length: 0, + }, AFI: afi, SAFI: safi, } |