summaryrefslogtreecommitdiffstats
path: root/package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-10 13:13:17 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-10 13:13:17 +0000
commit0331e55dfdbde1b1650c484322a87fea5f3eb416 (patch)
treefea484083f9355ce9e61e267b4d7e9030ca245af /package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch
parent18252b8fed6813d80b16feac5cd5530bdf0c81e8 (diff)
ipset: move to trunk and add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33698 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch')
-rw-r--r--package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch b/package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch
new file mode 100644
index 000000000..82a680f38
--- /dev/null
+++ b/package/network/utils/ipset/patches/200-remove-ipv6_addr_copy.patch
@@ -0,0 +1,22 @@
+--- a/kernel/net/netfilter/ipset/ip_set_hash_ip.c
++++ b/kernel/net/netfilter/ipset/ip_set_hash_ip.c
+@@ -241,7 +241,7 @@ hash_ip6_data_isnull(const struct hash_i
+ static inline void
+ hash_ip6_data_copy(struct hash_ip6_elem *dst, const struct hash_ip6_elem *src)
+ {
+- ipv6_addr_copy(&dst->ip.in6, &src->ip.in6);
++ dst->ip.in6 = src->ip.in6;
+ }
+
+ static inline void
+--- a/kernel/net/netfilter/ipset/ip_set_hash_net.c
++++ b/kernel/net/netfilter/ipset/ip_set_hash_net.c
+@@ -295,7 +295,7 @@ static inline void
+ hash_net6_data_copy(struct hash_net6_elem *dst,
+ const struct hash_net6_elem *src)
+ {
+- ipv6_addr_copy(&dst->ip.in6, &src->ip.in6);
++ dst->ip.in6 = src->ip.in6;
+ dst->cidr = src->cidr;
+ dst->nomatch = src->nomatch;
+ }