Edit the relevant file, e.g.
/usr/lib/perl5/site_perl/5.8.8/Net/Ping/External.pm
Change this
sub _ping_linux {
my %args = @_;
my $command;
#for next version
if (-e '/etc/redhat-release' || -e '/etc/SuSE-release') {
$command = "ping -c $args{count} -s $args{size} $args{host}";
} else {
$command = "ping -c $args{count} $args{host}";
}
return _ping_system($command, 0);
}
Into this
sub _ping_linux {
my %args = @_;
my $command;
#for next version
if (-e '/etc/redhat-release' || -e '/etc/SuSE-release') {
$command = "ping -c $args{count} -s $args{size} -w $args{timeout} $args{host}";
} else {
$command = "ping -c $args{count} $args{host}";
}
return _ping_system($command, 0);
}
by inserting "-w $args{timeout}"