mirror of https://github.com/hak5/openwrt-owl.git
kernel: fix another typo in the netfilter optimization patches
SVN-Revision: 27927owl
parent
6474dbe86b
commit
ba9e7889dd
|
@ -9,7 +9,7 @@
|
||||||
+ (ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
|
+ (ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
|
||||||
IPT_INV_SRCIP) ||
|
IPT_INV_SRCIP) ||
|
||||||
- FWINV((ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
|
- 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,
|
+ (ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
|
||||||
IPT_INV_DSTIP)) {
|
IPT_INV_DSTIP)) {
|
||||||
dprintf("Source or dest mismatch.\n");
|
dprintf("Source or dest mismatch.\n");
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
+ (ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
|
+ (ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
|
||||||
IPT_INV_SRCIP) ||
|
IPT_INV_SRCIP) ||
|
||||||
- FWINV((ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
|
- 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,
|
+ (ip->daddr&ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr,
|
||||||
IPT_INV_DSTIP)) {
|
IPT_INV_DSTIP)) {
|
||||||
dprintf("Source or dest mismatch.\n");
|
dprintf("Source or dest mismatch.\n");
|
||||||
|
|
Loading…
Reference in New Issue