summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-07 21:17:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-08-07 21:17:18 +0000
commitba9e7889dd564e9c436df1751fc05f381772680c (patch)
tree9e640d6c720e7cb8e09f0064659a328595fa022a
parent6474dbe86b78062fa5858ab55c3a28de42147a8f (diff)
downloadmtk-20170518-ba9e7889dd564e9c436df1751fc05f381772680c.zip
mtk-20170518-ba9e7889dd564e9c436df1751fc05f381772680c.tar.gz
mtk-20170518-ba9e7889dd564e9c436df1751fc05f381772680c.tar.bz2
kernel: fix another typo in the netfilter optimization patches
SVN-Revision: 27927
-rw-r--r--target/linux/generic/patches-2.6.39/612-netfilter_match_reduce_memory_access.patch2
-rw-r--r--target/linux/generic/patches-3.0/612-netfilter_match_reduce_memory_access.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/patches-2.6.39/612-netfilter_match_reduce_memory_access.patch b/target/linux/generic/patches-2.6.39/612-netfilter_match_reduce_memory_access.patch
index a36a172..7c50ad7 100644
--- a/target/linux/generic/patches-2.6.39/612-netfilter_match_reduce_memory_access.patch
+++ b/target/linux/generic/patches-2.6.39/612-netfilter_match_reduce_memory_access.patch
@@ -9,7 +9,7 @@
+ (ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
IPT_INV_SRCIP) ||
- FWINV((ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
-+ FWINV(ipinfo->smsk.s_addr &&
++ FWINV(ipinfo->dmsk.s_addr &&
+ (ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
IPT_INV_DSTIP)) {
dprintf("Source or dest mismatch.\n");
diff --git a/target/linux/generic/patches-3.0/612-netfilter_match_reduce_memory_access.patch b/target/linux/generic/patches-3.0/612-netfilter_match_reduce_memory_access.patch
index 817b37e..f506165 100644
--- a/target/linux/generic/patches-3.0/612-netfilter_match_reduce_memory_access.patch
+++ b/target/linux/generic/patches-3.0/612-netfilter_match_reduce_memory_access.patch
@@ -9,7 +9,7 @@
+ (ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
IPT_INV_SRCIP) ||
- FWINV((ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
-+ FWINV(ipinfo->smsk.s_addr &&
++ FWINV(ipinfo->dmsk.s_addr &&
+ (ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
IPT_INV_DSTIP)) {
dprintf("Source or dest mismatch.\n");