summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-06 13:43:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-06 14:15:42 +0900
commit43610ebc6c977141b93a185e87fe5c5f8de2553e (patch)
tree95b1e14e73a2869466d706b60005ab8cdba676d1 /server/fsm.go
parent302632715c1dded7af7038d448ac66aeb5f44b49 (diff)
server: fix storing received open msg
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 6214d0b1..af635f83 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -86,6 +86,7 @@ type FSM struct {
h *FSMHandler
rfMap map[bgp.RouteFamily]bool
capMap map[bgp.BGPCapabilityCode][]bgp.ParameterCapabilityInterface
+ recvOpen *bgp.BGPMessage
confedCheck bool
peerInfo *table.PeerInfo
policy *table.RoutingPolicy
@@ -626,6 +627,7 @@ func (h *FSMHandler) opensent() bgp.FSMState {
case *bgp.BGPMessage:
m := e.MsgData.(*bgp.BGPMessage)
if m.Header.Type == bgp.BGP_MSG_OPEN {
+ fsm.recvOpen = m
body := m.Body.(*bgp.BGPOpen)
err := bgp.ValidateOpenMsg(body, fsm.pConf.Config.PeerAs)
if err != nil {