diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-08 16:27:54 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-11 00:31:32 +0900 |
commit | 403ae3580bbaeb49da535efa66b96ee7b87b31d9 (patch) | |
tree | 84df2dc6ecd48d01e8b6db6faeb7ae37b3d28958 /server/peer.go | |
parent | 15812686282c61120e07c7880be6d347c1a53059 (diff) |
server: expose fsmMsgType, fsmMsg
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
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 425d61ee..81e7f1f8 100644 --- a/server/peer.go +++ b/server/peer.go @@ -133,7 +133,7 @@ func open2Cap(open *bgp.BGPOpen, n *config.Neighbor) (map[bgp.BGPCapabilityCode] return capMap, rfMap } -func (peer *Peer) handleBGPmessage(e *fsmMsg) ([]*table.Path, bool, []*bgp.BGPMessage) { +func (peer *Peer) handleBGPmessage(e *FsmMsg) ([]*table.Path, bool, []*bgp.BGPMessage) { m := e.MsgData.(*bgp.BGPMessage) bgpMsgList := []*bgp.BGPMessage{} pathList := []*table.Path{} @@ -212,7 +212,7 @@ func (peer *Peer) handleBGPmessage(e *fsmMsg) ([]*table.Path, bool, []*bgp.BGPMe return pathList, update, bgpMsgList } -func (peer *Peer) startFSMHandler(incoming chan *fsmMsg) { +func (peer *Peer) startFSMHandler(incoming chan *FsmMsg) { peer.fsm.h = NewFSMHandler(peer.fsm, incoming, peer.outgoing) } |