Skip Menu |

This queue is for tickets about the Net-Ping CPAN distribution.

Report information
The Basics
Id: 19280
Status: resolved
Priority: 0/
Queue: Net-Ping

People
Owner: Nobody in particular
Requestors: hnishi [...] floppy-1.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.31
Fixed in: (no value)



Subject: can't ping with tos on Solaris10.
I want to use Net::Ping to measure rtt of WAN on Solaris10. But when add tos options, Net::Ping can't return rtt etc. I fond out, "sub IP_TOS { 1; };" is different. Solaris10 have /usr/include/netinet/in.h that it is below. #ifndef IP_TOS #define IP_TOS 3 /* int; IP type of service and precedence */ #endif I corrected the following, so good. sub IP_TOS { 3; };
On Mon May 15 22:53:49 2006, guest wrote: Show quoted text
> I want to use Net::Ping to measure rtt of WAN on Solaris10. > But when add tos options, Net::Ping can't return rtt etc. > > I fond out, "sub IP_TOS { 1; };" is different. Solaris10 have > /usr/include/netinet/in.h that it is below. > > #ifndef IP_TOS > #define IP_TOS 3 /* int; IP type of service and > precedence */ > #endif > > I corrected the following, so good. > > sub IP_TOS { 3; }; > >
The source of the problem is that until a recent bleadperl, the constant IP_TOS was not defined by the Socket module. This has been fixed, but, unfortunately, isn't much help to you. Let me see if I can come up with a patch that can help you out.
I have a version on github at https://github.com/smpeters/net-ping with this fix. I anticipate releasing this updated version with the next month to CPAN. If you want, you can play with the fixed version now.