From 589fdea311c69ad92f9ded519a0f8c99320a47dc Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 12 Sep 2019 23:13:44 +0900 Subject: table: implement adj-in table use routing table structures rib and adj-in use the same data strcutures. Needs more clean up. Signed-off-by: FUJITA Tomonori --- internal/pkg/table/table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pkg/table/table.go') diff --git a/internal/pkg/table/table.go b/internal/pkg/table/table.go index f6ed2444..40eab0f7 100644 --- a/internal/pkg/table/table.go +++ b/internal/pkg/table/table.go @@ -175,7 +175,7 @@ func (t *Table) validatePath(path *Path) { } } -func (t *Table) getOrCreateDest(nlri bgp.AddrPrefixInterface) *Destination { +func (t *Table) getOrCreateDest(nlri bgp.AddrPrefixInterface, size int) *Destination { dest := t.GetDestination(nlri) // If destination for given prefix does not exist we create it. if dest == nil { @@ -183,7 +183,7 @@ func (t *Table) getOrCreateDest(nlri bgp.AddrPrefixInterface) *Destination { "Topic": "Table", "Nlri": nlri, }).Debugf("create Destination") - dest = NewDestination(nlri, 64) + dest = NewDestination(nlri, size) t.setDestination(dest) } return dest -- cgit v1.2.3