Skip to content
Snippets Groups Projects
Commit 29a9e629 authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

gofmt

parent ba57026e
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,9 @@ const ( ...@@ -63,9 +63,9 @@ const (
LocalPrefAttr = 5 LocalPrefAttr = 5
AtomicAggrAttr = 6 AtomicAggrAttr = 6
AggregatorAttr = 7 AggregatorAttr = 7
CommunitiesAttr = 8 CommunitiesAttr = 8
AS4PathAttr = 17 AS4PathAttr = 17
AS4AggregatorAttr = 18 AS4AggregatorAttr = 18
LargeCommunityAttr = 32 LargeCommunityAttr = 32
// ORIGIN values // ORIGIN values
......
...@@ -792,7 +792,7 @@ func (fsm *FSM) established() int { ...@@ -792,7 +792,7 @@ func (fsm *FSM) established() int {
case recvMsg := <-fsm.msgRecvCh: case recvMsg := <-fsm.msgRecvCh:
msg, err := packet.Decode(bytes.NewBuffer(recvMsg.msg)) msg, err := packet.Decode(bytes.NewBuffer(recvMsg.msg))
if err != nil { if err != nil {
log.WithError(err).Errorf("Failed to decode BGP message %v\n", recvMsg.msg) log.WithError(err).Errorf("Failed to decode BGP message %v\n", recvMsg.msg)
switch bgperr := err.(type) { switch bgperr := err.(type) {
case packet.BGPError: case packet.BGPError:
sendNotification(fsm.con, bgperr.ErrorCode, bgperr.ErrorSubCode) sendNotification(fsm.con, bgperr.ErrorCode, bgperr.ErrorSubCode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment