diff options
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 34bff21a..034a2bcb 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -1271,7 +1271,7 @@ func ParseRouteDistinguisher(rd string) (RouteDistinguisherInterface, error) { if err != nil { return nil, err } - assigned, _ := strconv.Atoi(elems[9]) + assigned, _ := strconv.Atoi(elems[10]) ip := net.ParseIP(elems[1]) switch { case ip.To4() != nil: |