diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-02-17 18:03:49 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-02-17 18:32:39 +0900 |
commit | d78c81be224e30ef21ec183e6c97000219683b48 (patch) | |
tree | 03adb5e382fcd21420e21c802184df8602d13161 /server/peer.go | |
parent | 43038c2e96e8ef7bcf2da145446fcd88c3007338 (diff) |
peer: support hold time 0
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 61a229ee..c635b2b1 100644 --- a/server/peer.go +++ b/server/peer.go @@ -127,9 +127,9 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) { holdTime := float64(body.HoldTime) myHoldTime := peer.fsm.peerConfig.Timers.HoldTime if holdTime > myHoldTime { - peer.fsm.negotiatedHoldTime = holdTime - } else { peer.fsm.negotiatedHoldTime = myHoldTime + } else { + peer.fsm.negotiatedHoldTime = holdTime } case bgp.BGP_MSG_ROUTE_REFRESH: |