[Fedora-directory-devel] Please review: [Bug 250702] not all the addresses associated with listenhost are bound to listen sockets

Noriko Hosoi nhosoi at redhat.com
Fri Aug 3 01:58:35 UTC 2007


Summary: not all the addresses associated with listenhost are bound to listen sockets


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=250702

Description of problem:
When listenhost is set, the host could be associated with multiple net addresses
in the IPv6 enabled environment. Directory Server calls PR_GetAddrInfoByName
(which internally calls getaddrinfo) to get the addresses from the listenhost
name, which could be more than one.  The server should listen on all the sockets 
bound to the addresses returned by PR_GetAddrInfoByName.


------- Additional Comments From nhosoi at redhat.com  2007-08-02 21:37 EST -------
Created an attachment (id=160570)
 --> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160570&action=view)
cvs diff message

Files:
 ldapserver/ldap/servers/slapd/fe.h
			       slap.h
			       daemon.c
			       main.c
Description:
listen socket used to be prepared one for the ordinary port, one for ssl, and
one for UNIX socket.  The first 4 slots of the connection table were used for
the listen sockets (one out of 4 is SIGNAL PIPE).  We need to extend the
hardcoded slot to dynamic depending upon the returned addresses from
PR_GetAddrInfoByName.

------- Additional Comments From nhosoi at redhat.com  2007-08-02 21:56 EST -------
Created an attachment (id=160571)
 --> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=160571&action=view)
listenhost test cases and results



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20070802/c682e158/attachment.bin>


More information about the Fedora-directory-devel mailing list