diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-21 11:05:09 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-21 11:05:09 +0900 |
commit | 13243a07034fc3bc2e3dc6c86a7bb4f43d469083 (patch) | |
tree | 2c8dc4a87f63820adb23d39c515b38d561526f6d /table/destination.go | |
parent | 78703baf275a21276066ebe4137b329812b6ac96 (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.go | 3 |
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 |