diff --git a/protocols/bgp/packet/bgp.go b/protocols/bgp/packet/bgp.go index 307c34ab118a6d56072daa282753b6c220e7d908..b32980dbdb3f702a69af0ff521db0cb66584bd4b 100644 --- a/protocols/bgp/packet/bgp.go +++ b/protocols/bgp/packet/bgp.go @@ -63,9 +63,9 @@ const ( LocalPrefAttr = 5 AtomicAggrAttr = 6 AggregatorAttr = 7 - CommunitiesAttr = 8 - AS4PathAttr = 17 - AS4AggregatorAttr = 18 + CommunitiesAttr = 8 + AS4PathAttr = 17 + AS4AggregatorAttr = 18 LargeCommunityAttr = 32 // ORIGIN values diff --git a/protocols/bgp/server/fsm.go b/protocols/bgp/server/fsm.go index 1a20503e13c9057fa5ed454150d422dd0faa9774..1d83b2d39819e429d9d32b557df9d97d28e07bac 100644 --- a/protocols/bgp/server/fsm.go +++ b/protocols/bgp/server/fsm.go @@ -792,7 +792,7 @@ func (fsm *FSM) established() int { case recvMsg := <-fsm.msgRecvCh: msg, err := packet.Decode(bytes.NewBuffer(recvMsg.msg)) 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) { case packet.BGPError: sendNotification(fsm.con, bgperr.ErrorCode, bgperr.ErrorSubCode)