summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp
diff options
context:
space:
mode:
Diffstat (limited to 'packet/bgp')
-rw-r--r--packet/bgp/bgp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index f0f7b2ce..2bc15ff2 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -7346,7 +7346,7 @@ func (msg *BGPHeader) DecodeFromBytes(data []byte) error {
func (msg *BGPHeader) Serialize() ([]byte, error) {
buf := make([]byte, 19)
- for i, _ := range buf[:16] {
+ for i := range buf[:16] {
buf[i] = 0xff
}
binary.BigEndian.PutUint16(buf[16:18], msg.Len)