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; };