httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [PATCH] IPV6 enabled check on Solaris
Date Thu, 24 Apr 2003 14:08:00 GMT
Jeff Trawick wrote:
> I hear what you're saying about the order of operations and about not 
> knowing what to connected to, but I don't know what to offer without 
> taking the time to come up with an alternate patch myself.  Maybe I'll 
> find the time.

what about something like this?

const char *local_ipv6_addrs[] = "::1", "::", "localhost";

for (cur = 0; cur < numaddrs; cur++) {
     rv = try_addr(local_ipv6_addrs[cur]);
     if rv is APR_SUCCESS

for try_addr() to work:

must be able to get socket
must be able to bind to ephemeral port
must be able to listen
must be able to get second socket
must be able to connect second socket to first socket using address 
passed in by find_family()

View raw message