From 2f82a1a6e6f4ab69d00f647c852713107cb94ec0 Mon Sep 17 00:00:00 2001 From: Soramichi Akiyama Date: Thu, 4 Jun 2015 19:33:00 +0900 Subject: packet: fix labelDecode --- packet/bgp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packet/bgp.go b/packet/bgp.go index c745effa..20fb47ee 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -851,7 +851,7 @@ func getRouteDistinguisher(data []byte) RouteDistinguisherInterface { } func labelDecode(data []byte) uint32 { - return uint32(data[0]<<16 | data[1]<<8 | data[2]) + return uint32(data[0])<<16 | uint32(data[1])<<8 | uint32(data[2]) } func labelSerialize(label uint32, buf []byte) { -- cgit v1.2.3