diff options
author | markj <markj@FreeBSD.org> | 2013-05-15 22:56:24 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-05-15 22:56:24 +0000 |
commit | e34342dafe64b19e42001c803d6709c96c3570f4 (patch) | |
tree | b1b873bc12d17d14e69652e733758633763a1821 /cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl | |
parent | c5c3f4f392975f0ffee18a566ed088e8426f41c5 (diff) | |
download | FreeBSD-src-e34342dafe64b19e42001c803d6709c96c3570f4.zip FreeBSD-src-e34342dafe64b19e42001c803d6709c96c3570f4.tar.gz |
Convert a couple of helper scripts used to test the ip provider to work on
FreeBSD. In the IPv6 case, try each interface before returning an error;
each IPv6-enabled interface will have a link-local address even if the link
isn't up.
MFC after: 1 week
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl')
-rwxr-xr-x | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl index 128263e..ccc247d 100755 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl @@ -73,7 +73,7 @@ die "Could not determine local IP address" if $local eq ""; # Find the first remote host that responds to an icmp echo, # which isn't a local address. # -open PING, "/sbin/ping -ns $Broadcast{$local} 56 $MAXHOSTS |" or +open PING, "/sbin/ping -n -s 56 -c $MAXHOSTS $Broadcast{$local} |" or die "Couldn't run ping: $!\n"; while (<PING>) { if (/bytes from (.*): / and not defined $Broadcast{$1}) { |