Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id GAA07841; Fri, 15 Aug 1997 06:14:21 -0700 (PDT) Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by hyperreal.org (8.8.5/8.8.5) with ESMTP id GAA07836 for ; Fri, 15 Aug 1997 06:14:17 -0700 (PDT) Received: from doubleshadow.unix-ag.org (isdn72.hrz.uni-siegen.de [141.99.174.72]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id PAA25930 for ; Fri, 15 Aug 1997 15:12:50 +0200 Received: (from sfx@localhost) by doubleshadow.unix-ag.org (Mailhost) id PAA00982 for new-httpd@apache.org; Fri, 15 Aug 1997 15:13:31 +0200 Message-ID: X-Mailer: XFMail 1.1 [p0] on Linux MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.1.p0.Linux:970815151330:500=_" Date: Fri, 15 Aug 1997 15:12:26 +0200 (CEST) Organization: German Unix-AG Association From: Lars Eilebrecht To: (Apache Group) Subject: [PATCH] for 1.3: proxy multi-ip matching, PR#974 Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org This message is in MIME format --_=XFMail.1.1.p0.Linux:970815151330:500=_ Content-Type: text/plain; charset=iso-8859-1 Hi, patch.proxyaddrlist, second try... ciao... -- Lars Eilebrecht - I may have my faults... sfx@unix-ag.org - but being wrong isn't one of them. http://www.si.unix-ag.org/~sfx/ --_=XFMail.1.1.p0.Linux:970815151330:500=_ Content-Disposition: attachment; filename="patch.proxyaddrlist" Content-Transfer-Encoding: 7bit Content-Description: patch.proxyaddrlist Content-Type: text/plain; charset=us-ascii; name=patch.proxyaddrlist; SizeOnDisk=1212 *** src/modules/proxy/proxy_util.c Sat Jul 19 10:58:15 1997 --- /usr/home/sfx/apache_1.3a1/src/modules/proxy/proxy_util.c Fri Aug 15 15:12:0 9 1997 *************** *** 951,956 **** --- 951,957 ---- int ip_addr[4]; struct in_addr addr; struct in_addr *ip_list; + char **ip_listptr; const char *found; const char *host = proxy_get_host_of_request(r); *************** *** 1001,1007 **** found = host; /* Try to deal with multiple IP addr's for a host */ ! for (ip_list = (struct in_addr *) *the_host.h_addr_list; ip_list->s_addr != 0 UL; ++ip_list) if (This->addr.s_addr == (ip_list->s_addr & This->mask.s_addr)) { #if DEBUGGING --- 1002,1010 ---- found = host; /* Try to deal with multiple IP addr's for a host */ ! for (ip_listptr=the_host.h_addr_list; *ip_listptr; ++ip_listptr) ! { ! ip_list = (struct in_addr *) *ip_listptr; if (This->addr.s_addr == (ip_list->s_addr & This->mask.s_addr)) { #if DEBUGGING *************** *** 1019,1024 **** --- 1022,1028 ---- fprintf(stderr,"%s\n", inet_ntoa(This->mask)); } #endif + } } /* Use net math to determine if a host lies in a subnet */ --_=XFMail.1.1.p0.Linux:970815151330:500=_-- End of MIME message