summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-08-02 00:16:33 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-08-02 00:16:33 +0900
commit07196197675c07c712eba0c24a934dcbe20783e4 (patch)
treef2f08f2606040b90e3f2abe2960f2160d4b93145 /api
parent15f598ad8e5be47725cc7aea31c80e38e346c408 (diff)
table: allocate bitmap for path id dynamically
allocating 256 bytes per prefix isn't a good idea. Let's allocate 8 bytes by default and expand dynamically if necessary. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r--api/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/util.go b/api/util.go
index 4f37309f..7cb9d2b8 100644
--- a/api/util.go
+++ b/api/util.go
@@ -82,7 +82,7 @@ func (d *Destination) ToNativeDestination(option ...ToNativeOption) (*table.Dest
}
paths = append(paths, path)
}
- return table.NewDestination(nlri, paths...), nil
+ return table.NewDestination(nlri, 0, paths...), nil
}
func (p *Path) ToNativePath(option ...ToNativeOption) (*table.Path, error) {