diff options
author | Soramichi Akiyama <akiyama@m.soramichi.jp> | 2015-06-04 19:33:00 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-06-09 23:04:23 +0900 |
commit | 2f82a1a6e6f4ab69d00f647c852713107cb94ec0 (patch) | |
tree | 39dd19cc796e3df5840a4dd603112d92fd8b20a7 /packet/bgp.go | |
parent | 78850b1a68427ca5459b667f50c64709db21c4c2 (diff) |
packet: fix labelDecode
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 2 |
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) { |