diff options
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go index 81050b31..fcc4adfb 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -205,7 +205,15 @@ func (h *FSMHandler) recvMessageWithError() error { hd := &bgp.BGPHeader{} err = hd.DecodeFromBytes(headerBuf) if err != nil { - h.errorCh <- true + log.WithFields(log.Fields{ + "Topic": "Peer", + "Key": h.fsm.peerConfig.NeighborAddress, + "error": err, + }).Warn("malformed BGP Header") + h.msgCh <- &fsmMsg{ + MsgType: FSM_MSG_BGP_MESSAGE, + MsgData: err, + } return err } |