[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache patch



Hi

I've attached the important bits of a patch from
http://orange.kame.net/dev/query-pr.cgi?pr=298
to make mod_auth work with IP address ranges (the rest of the patch
is just changelog and disabling anything that breaks because nmdb/db1.h
or somesuch isn't in woody).


Thanks
Ian

diff -ur apache-1.3.12-ipv6-20000524a+01/debian/patches/xx_apache-debian-ipv6.diff apache-mine/debian/patches/xx_apache-debian-ipv6.diff
--- apache-1.3.12-ipv6-20000524a+01/debian/patches/xx_apache-debian-ipv6.diff	Fri Aug 11 02:41:38 2000
+++ apache-mine/debian/patches/xx_apache-debian-ipv6.diff	Wed Nov  1 12:50:23 2000
@@ -3535,7 +3535,7 @@
      } x;
      enum allowdeny_type type;
  } allowdeny;
-@@ -166,90 +175,227 @@
+@@ -166,90 +175,230 @@
  
      }
      else if ((s = strchr(where, '/'))) {
@@ -3563,6 +3563,7 @@
 +
 +	memset(&hints, 0, sizeof(hints));
 +	hints.ai_family = PF_UNSPEC;
++   hints.ai_socktype = SOCK_STREAM;
 +#ifdef AI_NUMERICHOST
 +	hints.ai_flags = AI_NUMERICHOST;	/*don't resolve*/
 +#endif
@@ -3609,6 +3610,7 @@
 +	if (!justdigits) {
 +	    memset(&hints, 0, sizeof(hints));
 +	    hints.ai_family = PF_UNSPEC;
++       hints.ai_socktype = SOCK_STREAM;
 +#ifdef AI_NUMERICHOST
 +	    hints.ai_flags = AI_NUMERICHOST;	/*don't resolve*/
 +#endif
@@ -3785,6 +3787,7 @@
 +	/* IPv4/v6 numeric address */
 +	memset(&hints, 0, sizeof(hints));
 +	hints.ai_family = PF_UNSPEC;
++   hints.ai_socktype = SOCK_STREAM;
 +#ifdef AI_NUMERICHOST
 +	hints.ai_flags = AI_NUMERICHOST;	/*don't resolve*/
 +#endif
@@ -3825,7 +3828,7 @@
      }
  
      return NULL;
-@@ -314,12 +460,63 @@
+@@ -314,12 +463,63 @@
  	    return 1;
  
  	case T_IP:


Reply to: