Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 22453 invoked by uid 6000); 18 Jan 1999 19:20:21 -0000 Received: (qmail 22445 invoked by uid 24); 18 Jan 1999 19:20:20 -0000 Received: (qmail 15973 invoked from network); 18 Jan 1999 12:35:32 -0000 Received: from coconut.itojun.org (root@210.160.95.97) by taz.hyperreal.org with SMTP; 18 Jan 1999 12:35:32 -0000 Received: from kiwi.itojun.org (itojun@localhost.itojun.org [127.0.0.1]) by coconut.itojun.org (8.9.1+3.1W/3.7W) with ESMTP id VAA18590 for ; Mon, 18 Jan 1999 21:35:26 +0900 (JST) To: new-httpd@apache.org In-reply-to: randy's message of Thu, 14 Jan 1999 10:56:53 CST. <001301be3fde$e2ce19c0$0502a8c0@blanca.covalent.net> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: [PATCH] IPv6 enable patch for apahce 1.3.x From: Jun-ichiro itojun Hagino Date: Mon, 18 Jan 1999 21:35:26 +0900 Message-ID: <18586.916662926@coconut.itojun.org> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org >My opinion, it would be nice to see both to see how invasive the >changes for 1.3.x are. If they aren't too bad, it would be better >to get this into a next release of 1.3 rather than wait for 2.0. >But then again, I think we need to be getting into a bug fix mode >for 1.3 sometime real soon. Here's IPv6 enable patch for apache 1.3.x. There are fair amount of changes, like: - Eliminate gethostbyname() and gethostbyaddr(). Replace them by getaddrinfo() and getnameinfo() for address family independence. Supply tiny library for getaddrinfo() and getnameinfo(), in case your operating do not have one. Eliminate struct in_addr (or u_long, sometimes). use struct sockaddr_storage for that. See rfc2133 for specs of those library/structure. - Configure --enable-rule=INET6 should enable IPv6. (tested with KAME IPv6 implementation) Without --enable-rule=INET6, it should work as before. - extend Listen directive to take two separate arguments (like "Listen 127.0.0.1 80"), to allow IPv6 address into the address portion ("Listen :: 80"). I'm sorry that I was not able to check all the modules. There may be some modules that are not compatible with the patch, as it may change some of the core-module interface structure. README.v6 in the patch discusses compatibility issues. I do not attempt to attach the patch as it is something like 5000 lines. Please review: ftp://ftp.kame.net/pub/kame/misc/apache-134-v6-19990118.diff.gz (I made the patch against 1.3.4 but it can be applied to the latest version on the cvs repository) Comments and suggestions are, of course, welcome. itojun@kame.net jun-ichiro itojun hagino