SOURCES: iptables-glibc28.patch - updated for xtables (iptables 1.4.1)

zbyniu zbyniu at pld-linux.org
Wed May 21 23:50:18 CEST 2008


Author: zbyniu                       Date: Wed May 21 21:50:18 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for xtables (iptables 1.4.1)

---- Files affected:
SOURCES:
   iptables-glibc28.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/iptables-glibc28.patch
diff -u SOURCES/iptables-glibc28.patch:1.1 SOURCES/iptables-glibc28.patch:1.2
--- SOURCES/iptables-glibc28.patch:1.1	Mon May  5 00:22:54 2008
+++ SOURCES/iptables-glibc28.patch	Wed May 21 23:50:13 2008
@@ -14,17 +14,17 @@
  
  int
  ipv6_prefix_length(const struct in6_addr *a)
---- iptables-1.4.0/ip6tables.c~	2007-12-22 12:44:18.000000000 +0000
-+++ iptables-1.4.0/ip6tables.c	2008-05-04 22:18:07.976519241 +0000
-@@ -678,7 +678,11 @@
- 	for (i = 0, j = 0; i < n; i++) {
- 		int k;
- 		for (k = 0; k < 4; k++)
+--- iptables-1.4.1/xtables.c~	2008-05-19 12:50:30.000000000 +0200
++++ iptables-1.4.1/xtables.c	2008-05-21 23:05:57.235380593 +0200
+@@ -1178,7 +1178,11 @@ void ip6parse_hostnetworkmask(const char
+ 	n = *naddrs;
+ 	for (i = 0, j = 0; i < n; ++i) {
+ 		for (k = 0; k < 4; ++k)
 +#if __GLIBC_PREREQ(2, 8)
 +			addrp[j].__in6_u.__u6_addr32[k] &= maskp->__in6_u.__u6_addr32[k];
 +#else
  			addrp[j].in6_u.u6_addr32[k] &= maskp->in6_u.u6_addr32[k];
 +#endif
- 		j++;
- 		for (k = 0; k < j - 1; k++) {
+ 		++j;
+ 		for (k = 0; k < j - 1; ++k)
  			if (IN6_ARE_ADDR_EQUAL(&addrp[k], &addrp[j - 1])) {
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/iptables-glibc28.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list