bronto has asked for the wisdom of the Perl Monks concerning the following question:
Dearest Monks
A colleague of mine has a test script that he uses to send ICMP ping packets for monitorning purposes. The script can be shortened to a one-liner like the following:
perl -MNet::Ping -MTime::HiRes -le ' my $p=Net::Ping->new("icmp",3,3,"bge0") ; $p->hires() ; @r=$p->ping("10.39.15.20"); print "[$r[0]] [$r[1]]"'Now, everything works on a couple of different Linux distributions, but on Solaris it dies with an error:
error binding to device bge0 Option not supported by protocol at -e line 1Needless to say, everything works fine if he doesn't specify the network interface. The problem is that he needs to, since he needs to test connectivity from both. I took a look at Net::Ping's code and the problem happens with a setsockopt call, but it seems so weird that no one noticed before...
Is anybody out there aware of a Solaris-specific bug of the module? I tried an handful of searches here and there (google, rt.cpan.org, perlmonks...) but none gave relevant results.
Thanks in advance
Ciao!
--bronto
In theory, there is no difference between theory and practice. In practice, there is.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::Ping broken on Solaris?
by shmem (Chancellor) on Sep 11, 2006 at 13:18 UTC | |
by bronto (Priest) on Sep 11, 2006 at 14:08 UTC | |
by shmem (Chancellor) on Sep 11, 2006 at 16:20 UTC | |
by bronto (Priest) on Oct 07, 2006 at 15:37 UTC | |
Re: Net::Ping broken on Solaris?
by prodevel (Scribe) on Sep 11, 2006 at 11:31 UTC | |
by bronto (Priest) on Sep 11, 2006 at 15:01 UTC | |
by prodevel (Scribe) on Sep 12, 2006 at 11:05 UTC | |
Re: Net::Ping broken on Solaris?
by Steve_p (Priest) on Aug 06, 2007 at 14:05 UTC | |
by Steve_p (Priest) on Aug 08, 2007 at 16:48 UTC | |
by bronto (Priest) on Aug 21, 2007 at 07:16 UTC |