From 403ae3580bbaeb49da535efa66b96ee7b87b31d9 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 8 Nov 2015 16:27:54 +0900 Subject: server: expose fsmMsgType, fsmMsg Signed-off-by: ISHIDA Wataru --- server/peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/peer.go') 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) } -- cgit v1.2.3