diff options
author | zabio3 <zabio1192@gmail.com> | 2019-03-12 18:11:39 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-03-16 19:35:04 +0900 |
commit | 6345fdd20a172fc2e568487c391246307b9cd757 (patch) | |
tree | 9ab00461978f9c90adb6ded606a57f55d571a924 /pkg | |
parent | ed0580dadf31bbe54d021e994e3726dda5cdc1a0 (diff) |
Fixed typos
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/packet/bgp/bgp.go | 2 | ||||
-rw-r--r-- | pkg/server/fsm.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go index d78e04b6..c66d4a70 100644 --- a/pkg/packet/bgp/bgp.go +++ b/pkg/packet/bgp/bgp.go @@ -12452,7 +12452,7 @@ type BGPNotification struct { func (msg *BGPNotification) DecodeFromBytes(data []byte, options ...*MarshallingOption) error { if len(data) < 2 { - return NewMessageError(BGP_ERROR_MESSAGE_HEADER_ERROR, BGP_ERROR_SUB_BAD_MESSAGE_LENGTH, nil, "Not all Notificaiton bytes available") + return NewMessageError(BGP_ERROR_MESSAGE_HEADER_ERROR, BGP_ERROR_SUB_BAD_MESSAGE_LENGTH, nil, "Not all Notification bytes available") } msg.ErrorCode = data[0] msg.ErrorSubcode = data[1] diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go index 56b2c35e..6eadfa92 100644 --- a/pkg/server/fsm.go +++ b/pkg/server/fsm.go @@ -1865,7 +1865,7 @@ func (h *fsmHandler) loop(ctx context.Context, wg *sync.WaitGroup) error { } if oldState == bgp.BGP_FSM_ESTABLISHED { - // The main goroutine sent the notificaiton due to + // The main goroutine sent the notification due to // deconfiguration or something. reason := fsm.reason if fsm.h.sentNotification != nil { |