diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-22 02:52:33 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-22 02:52:33 -0800 |
commit | 275f20e96e674e3a0b654292f81240744c61665a (patch) | |
tree | 8f4a4e6b7b0d6d31cd9e4bea00b2435f67eb8e46 /table/destination.go | |
parent | c90dc7bcf1caadb23119e638ef7ed576e1c97187 (diff) |
table: send withdraw when peer is down
When a peer becomes down, send withdraw for the best pathes of it.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go index 9461713b..7be547c4 100644 --- a/table/destination.go +++ b/table/destination.go @@ -58,6 +58,7 @@ type Destination interface { GetOldBestPath() Path setOldBestPath(path Path) getKnownPathList() []Path + setKnownPathList([]Path) String() string addWithdraw(withdraw Path) addNewPath(newPath Path) @@ -133,6 +134,10 @@ func (dd *DestinationDefault) getKnownPathList() []Path { return dd.knownPathList } +func (dd *DestinationDefault) setKnownPathList(List []Path) { + dd.knownPathList = List +} + func (dd *DestinationDefault) addWithdraw(withdraw Path) { dd.validatePath(withdraw) dd.withdrawList = append(dd.withdrawList, withdraw) |