diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-09-19 16:46:10 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-09-19 16:46:10 -0500 |
commit | c34a0b81b02cb875fcb0822454a9a5eca630a5a6 (patch) | |
tree | 594d3685a8b47551f41eb2e985084fe9e1cf7523 | |
parent | b8e238b489fe91babb38d9f1afbebb2ed4a55988 (diff) | |
download | vyatta-op-c34a0b81b02cb875fcb0822454a9a5eca630a5a6.tar.gz vyatta-op-c34a0b81b02cb875fcb0822454a9a5eca630a5a6.zip |
Fix ipv6 matching in ping and traceroute
-rw-r--r-- | scripts/vyatta-ping | 2 | ||||
-rw-r--r-- | scripts/vyatta-traceroute | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-ping b/scripts/vyatta-ping index d454c19..393c0ab 100644 --- a/scripts/vyatta-ping +++ b/scripts/vyatta-ping @@ -17,7 +17,7 @@ else | grep -m1 -E "$ip4regex">/dev/null; then # resolve address and check if it is ipv4 or other /bin/ping ${@:2} $ADDR - elif host $ADDR | awk {' print $4 '} \ + elif host $ADDR | awk {' print $5 '} \ | grep -m1 -E "$ip6regex">/dev/null; then # if ipv6 resolution then ping6 /bin/ping6 ${@:2} $ADDR diff --git a/scripts/vyatta-traceroute b/scripts/vyatta-traceroute index f6dff6b..ca87a6d 100644 --- a/scripts/vyatta-traceroute +++ b/scripts/vyatta-traceroute @@ -17,7 +17,7 @@ else | grep -m1 -E "$ip4regex">/dev/null; then # resolve address and check if it is ipv4 or other /usr/bin/traceroute ${@:2} $ADDR - elif host $ADDR | awk {' print $4 '} \ + elif host $ADDR | awk {' print $5 '} \ | grep -m1 -E "$ip6regex">/dev/null; then # if ipv6 resolution then ping6 /usr/bin/traceroute6 ${@:2} $ADDR |