diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-02-08 14:26:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-02-16 11:28:02 +0900 |
commit | aebb0a18d81841047ebb041892040bbd53074cac (patch) | |
tree | dffc7964f5bf4c38597466a5d893182750ae505f /packet/bgp/bgp.go | |
parent | 1b84b8145418398e7e68b81cdce506dcf81eec14 (diff) |
packet/bgp: Fix bitSize of ESI type
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'packet/bgp/bgp.go')
-rw-r--r-- | packet/bgp/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 2bd12f24..df2e1571 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -2050,7 +2050,7 @@ func ParseEthernetSegmentIdentifier(args []string) (EthernetSegmentIdentifier, e case "AS": esi.Type = ESI_AS default: - typ, err := strconv.ParseUint(args[0], 10, 0) + typ, err := strconv.ParseUint(args[0], 10, 8) if err != nil { return esi, fmt.Errorf("invalid esi type: %s", args[0]) } |