diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-03-27 03:53:48 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-04-04 13:18:48 +0900 |
commit | eeec5ffe939f597599b636dd96f764fa666e1115 (patch) | |
tree | 53826d17027430e774082cc90b30f67ca6e53183 /server/peer.go | |
parent | e6a5f817416bfd63e0b7a75be613d9af1cf2b6d6 (diff) |
server: fix path originator check
withdrawal paths don't have nexthop path attribute.
use GetSource() instead.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go index 0599d237..2c25b519 100644 --- a/server/peer.go +++ b/server/peer.go @@ -401,7 +401,7 @@ func (peer *Peer) sendUpdateMsgFromPaths(pList []table.Path) { for _, p := range paths { _, ok := peer.rfMap[p.GetRouteFamily()] - if peer.peerConfig.NeighborAddress.Equal(p.GetNexthop()) { + if peer.peerConfig.NeighborAddress.Equal(p.GetSource().Address) { log.WithFields(log.Fields{ "Topic": "Peer", "Key": peer.peerConfig.NeighborAddress, |