Issue 559 - IPv6 patch for the devel slapd
Summary: IPv6 patch for the devel slapd
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-05 13:30 UTC by venaas@openldap.org
Modified: 2014-08-01 21:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kurt Zeilenga 2000-06-05 07:22:46 UTC
moved from Incoming to Development
Comment 1 venaas@openldap.org 2000-06-05 13:30:55 UTC
Full_Name: Stig Venaas
Version: devel (todays CVS)
OS: Linux
URL: http://domen.uninett.no/~venaas/openldap6.diff
Submission from: (NULL) (158.38.60.92)


Here's a patch for IPv6 support in slapd.

The only changes are in servers/slapd/daemon.c. If INET6 is defined it
will use getaddrinfo and other new API functions, and you will get a
binary that uses IPv6 if available, but the binary will also work on IPv4
only hosts.

I could change configure so that INET6 is defined if getaddrinfo et al is
present, then on Linux with GLIBC 2.1, FreeBSD 4.0 etc. that has the new
API, the binary will have IPv6 support by default, but also work on IPv4
hosts. Then distributions can have one binary for both IPv4 and IPv6.

Do you want me to do that right away, or should we let it be a configure
option that people must use until we've had a few people testing it? If
we leave it on by default, there could still be an enable/disable option.

It looks good to me, but I'm almost surprised if there are no bugs in
there. Perhaps you see some problems right away....

The patch is a bit ugly because there are some interaction with the
LDAP_PF_LOCAL code. If everyone using LDAP_PF_LOCAL had the new API
(with getaddrinfo) things would be cleaner. Right now the code must
work with or without both LDAP_PF_LOCAL and INET6.

Comment 2 Kurt Zeilenga 2000-06-05 14:14:38 UTC
At 01:30 PM 6/5/00 GMT, venaas@uninett.no wrote:
>Full_Name: Stig Venaas
>Version: devel (todays CVS)
>OS: Linux
>URL: http://domen.uninett.no/~venaas/openldap6.diff
>Submission from: (NULL) (158.38.60.92)
>
>
>Here's a patch for IPv6 support in slapd.
>
>The only changes are in servers/slapd/daemon.c. If INET6 is defined it
>will use getaddrinfo and other new API functions, and you will get a
>binary that uses IPv6 if available, but the binary will also work on IPv4
>only hosts.

LDAP_INET6 would be a better define choice.

>I could change configure so that INET6 is defined if getaddrinfo et al is
>present, then on Linux with GLIBC 2.1, FreeBSD 4.0 etc. that has the new
>API, the binary will have IPv6 support by default, but also work on IPv4
>hosts. Then distributions can have one binary for both IPv4 and IPv6.

I would suggest --enable-ipv6 with a default of auto.

>Do you want me to do that right away, or should we let it be a configure
>option that people must use until we've had a few people testing it?

I'm happy to add configure support whenever it's ready.

>If we leave it on by default, there could still be an enable/disable option.

Default of auto would enable if platform support was available.

>It looks good to me, but I'm almost surprised if there are no bugs in
>there. Perhaps you see some problems right away....

I am sure there is more to do... but incremental patches/solutions
are good.

>The patch is a bit ugly because there are some interaction with the
>LDAP_PF_LOCAL code. If everyone using LDAP_PF_LOCAL had the new API
>(with getaddrinfo) things would be cleaner. Right now the code must
>work with or without both LDAP_PF_LOCAL and INET6.

That's life.
Comment 3 Kurt Zeilenga 2000-06-06 20:22:02 UTC
changed notes
changed state Open to Closed
Comment 4 OpenLDAP project 2014-08-01 21:05:27 UTC
applied