From aebb0a18d81841047ebb041892040bbd53074cac Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Thu, 8 Feb 2018 14:26:21 +0900 Subject: packet/bgp: Fix bitSize of ESI type Signed-off-by: IWASE Yusuke --- packet/bgp/bgp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packet/bgp') 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]) } -- cgit v1.2.3