summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-11 22:01:32 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-11 22:01:32 +0900
commit40eadd4a8e682379e4e2554ac3ae5ef140c2ae81 (patch)
treec62fed7ae98d4b42096e7f9aa784f0367d52a8f7
parent388ef503f2c9cae8f33e0128dfb31eb7b3016af7 (diff)
packet/bgp: remove bogus debug print
fix a mess in the commit 388ef503f2c9cae. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--packet/bgp/bgp.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index 2c1bc846..64ff1316 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -9222,7 +9222,6 @@ func (msg *BGPHeader) DecodeFromBytes(data []byte, options ...*MarshallingOption
return NewMessageError(BGP_ERROR_MESSAGE_HEADER_ERROR, BGP_ERROR_SUB_BAD_MESSAGE_LENGTH, nil, "not all BGP message header")
}
msg.Len = binary.BigEndian.Uint16(data[16:18])
- fmt.Println("XXX", msg.Len, data[16:18])
if int(msg.Len) < BGP_HEADER_LENGTH {
return NewMessageError(BGP_ERROR_MESSAGE_HEADER_ERROR, BGP_ERROR_SUB_BAD_MESSAGE_LENGTH, nil, "unknown message type")
}