summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSoramichi Akiyama <akiyama@m.soramichi.jp>2015-06-04 19:33:00 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-06-09 23:04:23 +0900
commit2f82a1a6e6f4ab69d00f647c852713107cb94ec0 (patch)
tree39dd19cc796e3df5840a4dd603112d92fd8b20a7
parent78850b1a68427ca5459b667f50c64709db21c4c2 (diff)
packet: fix labelDecode
-rw-r--r--packet/bgp.go2
1 files changed, 1 insertions, 1 deletions
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) {