diff options
Diffstat (limited to 'table/table_manager.go')
-rw-r--r-- | table/table_manager.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/table/table_manager.go b/table/table_manager.go index 0bee18c3..26581cea 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -57,9 +57,7 @@ func ProcessMessage(m *bgp.BGPMessage, peerInfo *PeerInfo, timestamp time.Time) reach = a case *bgp.PathAttributeMpUnreachNLRI: l := make([]bgp.AddrPrefixInterface, 0, len(a.Value)) - for _, nlri := range a.Value { - l = append(l, nlri) - } + l = append(l, a.Value...) dels = append(dels, l...) default: attrs = append(attrs, attr) |