projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel] fix some netfilter extensions on 2.6.25
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
patches-2.6.25
/
170-netfilter_chaostables_0.8.patch
diff --git
a/target/linux/generic-2.6/patches-2.6.25/170-netfilter_chaostables_0.8.patch
b/target/linux/generic-2.6/patches-2.6.25/170-netfilter_chaostables_0.8.patch
index
38b5000
..
a5c42fc
100644
(file)
--- a/
target/linux/generic-2.6/patches-2.6.25/170-netfilter_chaostables_0.8.patch
+++ b/
target/linux/generic-2.6/patches-2.6.25/170-netfilter_chaostables_0.8.patch
@@
-271,7
+271,7
@@
Index: linux-2.6.24/net/netfilter/xt_CHAOS.c
+
+ /* TARPIT/DELUDE may not be called from the OUTPUT chain */
+ if (iph->protocol == IPPROTO_TCP &&
+
+ /* TARPIT/DELUDE may not be called from the OUTPUT chain */
+ if (iph->protocol == IPPROTO_TCP &&
-+ info->variant != XTCHAOS_NORMAL && hooknum != NF_I
P
_LOCAL_OUT)
++ info->variant != XTCHAOS_NORMAL && hooknum != NF_I
NET
_LOCAL_OUT)
+ xt_chaos_total(info, skb, in, out, hooknum);
+
+ return NF_DROP;
+ xt_chaos_total(info, skb, in, out, hooknum);
+
+ return NF_DROP;
@@
-300,8
+300,8
@@
Index: linux-2.6.24/net/netfilter/xt_CHAOS.c
+ .name = "CHAOS",
+ .family = AF_INET,
+ .table = "filter",
+ .name = "CHAOS",
+ .family = AF_INET,
+ .table = "filter",
-+ .hooks = (1 << NF_I
P_LOCAL_IN) | (1 << NF_IP
_FORWARD) |
-+ (1 << NF_I
P
_LOCAL_OUT),
++ .hooks = (1 << NF_I
NET_LOCAL_IN) | (1 << NF_INET
_FORWARD) |
++ (1 << NF_I
NET
_LOCAL_OUT),
+ .checkentry = chaos_tg_check,
+ .target = chaos_tg,
+ .targetsize = sizeof(struct xt_chaos_target_info),
+ .checkentry = chaos_tg_check,
+ .target = chaos_tg,
+ .targetsize = sizeof(struct xt_chaos_target_info),
@@
-507,10
+507,10
@@
Index: linux-2.6.24/net/netfilter/xt_DELUDE.c
+
+ addr_type = RTN_UNSPEC;
+#ifdef CONFIG_BRIDGE_NETFILTER
+
+ addr_type = RTN_UNSPEC;
+#ifdef CONFIG_BRIDGE_NETFILTER
-+ if (hook != NF_I
P
_FORWARD || (nskb->nf_bridge != NULL &&
++ if (hook != NF_I
NET
_FORWARD || (nskb->nf_bridge != NULL &&
+ nskb->nf_bridge->mask & BRNF_BRIDGED))
+#else
+ nskb->nf_bridge->mask & BRNF_BRIDGED))
+#else
-+ if (hook != NF_I
P
_FORWARD)
++ if (hook != NF_I
NET
_FORWARD)
+#endif
+ addr_type = RTN_LOCAL;
+
+#endif
+ addr_type = RTN_LOCAL;
+
@@
-532,7
+532,7
@@
Index: linux-2.6.24/net/netfilter/xt_DELUDE.c
+
+ nf_ct_attach(nskb, oldskb);
+
+
+ nf_ct_attach(nskb, oldskb);
+
-+ NF_HOOK(PF_INET, NF_I
P
_LOCAL_OUT, nskb, NULL, nskb->dst->dev,
++ NF_HOOK(PF_INET, NF_I
NET
_LOCAL_OUT, nskb, NULL, nskb->dst->dev,
+ dst_output);
+ return;
+
+ dst_output);
+ return;
+
@@
-555,7
+555,7
@@
Index: linux-2.6.24/net/netfilter/xt_DELUDE.c
+ .name = "DELUDE",
+ .family = AF_INET,
+ .table = "filter",
+ .name = "DELUDE",
+ .family = AF_INET,
+ .table = "filter",
-+ .hooks = (1 << NF_I
P_LOCAL_IN) | (1 << NF_IP
_FORWARD),
++ .hooks = (1 << NF_I
NET_LOCAL_IN) | (1 << NF_INET
_FORWARD),
+ .target = delude_tg,
+ .proto = IPPROTO_TCP,
+ .me = THIS_MODULE,
+ .target = delude_tg,
+ .proto = IPPROTO_TCP,
+ .me = THIS_MODULE,
This page took
0.037061 seconds
and
4
git commands to generate.