summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-10 09:14:23 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-14 00:44:15 +0900
commitce5917c0a8d6206fd1d70a5a476eb99e510fc9f6 (patch)
treed7227f744677b3a1b201587ae244d3c3a0411275 /table/destination.go
parent4821c2af8f120d312dc9e6b95b5dd7bd663f35d4 (diff)
table: remove Destination's ImplicitWithdrawnList
Implicitly withdrawn pathes are kept to be referenced thus the memory for them are not freed. Nobody uses this so let's remove it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/table/destination.go b/table/destination.go
index 87f1f841..f323a6d7 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -111,16 +111,15 @@ func NewPeerInfo(g *config.Global, p *config.Neighbor) *PeerInfo {
}
type Destination struct {
- routeFamily bgp.RouteFamily
- nlri bgp.AddrPrefixInterface
- oldKnownPathList paths
- knownPathList paths
- withdrawList paths
- newPathList paths
- WithdrawnList paths
- ImplicitWithdrawnList paths
- UpdatedPathList paths
- RadixKey string
+ routeFamily bgp.RouteFamily
+ nlri bgp.AddrPrefixInterface
+ oldKnownPathList paths
+ knownPathList paths
+ withdrawList paths
+ newPathList paths
+ WithdrawnList paths
+ UpdatedPathList paths
+ RadixKey string
}
func NewDestination(nlri bgp.AddrPrefixInterface) *Destination {
@@ -247,7 +246,7 @@ func (dest *Destination) Calculate() {
// First remove the withdrawn paths.
dest.WithdrawnList = dest.explicitWithdraw()
// Do implicit withdrawal
- dest.ImplicitWithdrawnList = dest.implicitWithdraw()
+ dest.implicitWithdraw()
// Collect all new paths into known paths.
dest.knownPathList = append(dest.knownPathList, dest.newPathList...)
// Clear new paths as we copied them.