summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorkishiguro <ishi@hash-set.com>2018-03-22 01:24:31 +0900
committerkishiguro <ishi@hash-set.com>2018-03-22 01:24:31 +0900
commitc216447b0b0819c2fab867a8e3d660aa9d66133e (patch)
tree930b331930c436c635562f6f6281e07c086fb2f7 /server
parent683103e1db90524fc65feac717eace5ae1f6e47c (diff)
Fix AddPath MarshallingOption bug.
When neighbor had AddPath capability, then disable AddPath after that. Old marshallingOptions remains. So once neighbor enabled AddPath it can't be disabled with no AddPath capability option in Open Message.
Diffstat (limited to 'server')
-rw-r--r--server/fsm.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 9db3a552..2c2128cb 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -1114,6 +1114,8 @@ func (h *FSMHandler) opensent() (bgp.FSMState, FsmStateReason) {
fsm.marshallingOptions = &bgp.MarshallingOption{
AddPath: fsm.rfMap,
}
+ } else {
+ fsm.marshallingOptions = nil
}
// calculate HoldTime