summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-08-02 10:19:47 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-04-04 22:07:46 +0900
commit6d55ba613ad9cc8635427d7c87b433d605849852 (patch)
tree1c9d6062d0cfe1f34d07749a35e8a5b416e44b89 /server
parent029852207a0318056edd984ae876f85eefd1df1f (diff)
table: fix bug of UpdatePathAttrs() with ipv6 link-local peer
config.Neighbor.Transport.State.LocalAddress may have zone info and not be valid ip address format. Use PeerInfo.LocalAddress 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 eeae0556..96e014db 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -272,7 +272,7 @@ func (peer *Peer) filterpath(path, old *table.Path) *table.Path {
}
path = path.Clone(path.IsWithdraw)
- path.UpdatePathAttrs(peer.fsm.gConf, peer.fsm.pConf)
+ path.UpdatePathAttrs(peer.fsm.gConf, peer.fsm.pConf, peer.fsm.peerInfo)
options := &table.PolicyOptions{
Info: peer.fsm.peerInfo,