summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-21 11:05:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-21 11:05:09 +0900
commit13243a07034fc3bc2e3dc6c86a7bb4f43d469083 (patch)
tree2c8dc4a87f63820adb23d39c515b38d561526f6d /table/destination.go
parent78703baf275a21276066ebe4137b329812b6ac96 (diff)
speed up showing ipv6 routes
same as ipv4. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go
index 55c90b53..96979a78 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -93,7 +93,8 @@ func NewDestination(nlri bgp.AddrPrefixInterface) *Destination {
withdrawList: make([]*Path, 0),
newPathList: make([]*Path, 0),
}
- if d.routeFamily == bgp.RF_IPv4_UC {
+ switch d.routeFamily {
+ case bgp.RF_IPv4_UC, bgp.RF_IPv6_UC:
d.RadixKey = CidrToRadixkey(nlri.String())
}
return d