<[EMAIL PROTECTED]> writes:

> So, now I found out the difference on that Solaris machines: According
> to /etc/nsswitch.conf some of them use nis for resolving the protocol
> ("tcp" is returned for protocol no 6, so Perl script is working), others
> are using ldap ("TCP" is returned for protocol no 6, Perl script not
> working).
> 
> I don't know the reason for this difference - but I suppose it will be
> hard to convince those IT guys.

I would still try to ask them :)

> Anyway, in my opinion the Socket::IO::INET should not rely on lower case
> letters to be returned by getprotobynumber() - since applications like
> netscape work on all our machines regardless whether "tcp" or "TCP" show
> up the protocol configuration.

Perl is probably alone in calling getprotobynumber() and using the
protocol name returned for anything so I'm not surprised.  Normal
programs would just hardcode SOCK_STREAM.  I'm sure netscape whatever
does that as well.

Can you verify that the patch I proposed does indeed fix your problem?

Regards,
Gisle

Reply via email to