summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/netdevs/netdevs.go
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2020-11-04 18:17:33 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-04 18:19:44 -0800
commite29972ec04f96fa9c560f864113599ce313e1240 (patch)
tree4453cfba9a6385f376258b0ad902ab7d19e3330c /test/packetimpact/netdevs/netdevs.go
parenta15562c019a42e04fed7e9cff1d901b3bcfaca59 (diff)
Make the regex for inet6Line in packetimpact/netdevs more accurate
PiperOrigin-RevId: 340763455
Diffstat (limited to 'test/packetimpact/netdevs/netdevs.go')
-rw-r--r--test/packetimpact/netdevs/netdevs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetimpact/netdevs/netdevs.go b/test/packetimpact/netdevs/netdevs.go
index eecfe0730..006988896 100644
--- a/test/packetimpact/netdevs/netdevs.go
+++ b/test/packetimpact/netdevs/netdevs.go
@@ -40,7 +40,7 @@ var (
deviceLine = regexp.MustCompile(`^\s*(\d+): (\w+)`)
linkLine = regexp.MustCompile(`^\s*link/\w+ ([0-9a-fA-F:]+)`)
inetLine = regexp.MustCompile(`^\s*inet ([0-9./]+)`)
- inet6Line = regexp.MustCompile(`^\s*inet6 ([0-9a-fA-Z:/]+)`)
+ inet6Line = regexp.MustCompile(`^\s*inet6 ([0-9a-fA-F:/]+)`)
)
// ParseDevices parses the output from `ip addr show` into a map from device