diff options
-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, } |