On May 14, 2007, at 1:32 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
-----Original Message-----
From: Peter Marschall [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 13, 2007 5:53 AM
To: perl-ldap@perl.org
Subject: Re: IPv6

Hi,

On Monday, 30. April 2007 20:50, [EMAIL PROTECTED] wrote:
Are there any plans to add IPv6 support to Net::LDAP?

I cannot test it, but I would have assumed it is already in
provided modules that Net::LDAP uses (IO::Socket e.g.) support it.

Are there pieces of code in perl-ldap that should support IPv6,
but corrently don't?

Peter,

My understanding is that IPv6 support is added to IO::Socket by a
separate module, IO::Socket::INET6, which in turn uses Socket6 which is
an add-on module to the standard Socket module.

Yes, that is correct.

So where LDAP.pm now calls IO::Socket::INET, it would need to call
IO::Socket::INET6. The new INET6 Domain argument already defaults to
AF_UNSPEC, so I don't believe that needs to be specified; though, for
testing purposes, it might be nice if Net::LDAP externalised it.

Any, or all, of the above might be total rubbish... :)

I have not looked at INET6 and I do not have easy access to test INET6, but if someone wants to send a patch then I would gladly incorporate it.

I assume AF_UNSPEC would cause the library to do a v6 or a v4 connect ?

Graham.

Reply via email to