summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-27 03:53:48 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-04 13:18:48 +0900
commiteeec5ffe939f597599b636dd96f764fa666e1115 (patch)
tree53826d17027430e774082cc90b30f67ca6e53183 /server
parente6a5f817416bfd63e0b7a75be613d9af1cf2b6d6 (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')
-rw-r--r--server/peer.go2
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,