Call for pending patches
Subsystems (2)
Hi!
I'm sorry if there are still any pending patches which I have missed to pick up from netfilter-devel.
If anybody has still patches against netfilter/iptables CVS, which he wants to have included, please re-send them to me via private email.
Thanks.
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)
PATCH 1/1 REJECT incorrectly inherits the current nfmark to the generated RST packet
I have a smal patch not yet sent..
REJECT incorrecly inherits the current nfmark to the generated packet, inhibiting mangle from rerouting the generated RST packet correcly if attempting to set the same mark as the original packet that was REJECT:ed.
Attached you find a patch that makes sure the nfmark on the generated packet is cleared proper, allowing mangle to do it's job as usual for any other locally generated packets.
If the normal TCP/IP routing of locally generated packets accounted for nfmark this would obviously not be a problem, but then routing occurs before mangle on locally generated traffic so...
Reards
Henrik
Quoted 9 lines · Harald Welte
Hi!
I'm sorry if there are still any pending patches which I have missed to pick up from netfilter-devel.
If anybody has still patches against netfilter/iptables CVS, which he wants to have included, please re-send them to me via private email.
Thanks.
net/ipv4/netfilter/ipt_REJECT.c renamed from net/ipv4/netfilter/ipt_REJECT.c.orig +1 -0
@@ -74,6 +74,7 @@#ifdef CONFIG_NETFILTER_DEBUG nskb->nf_debug =0 ;#endif + nskb->nfmark =0 ; tcph = (struct tcphdr *)((u_int32_t *)nskb->nh.iph + nskb->nh.iph->ihl);
Author: Henrik Nordstrom <[email protected]>
Status: working
Don't copy the nfmark value of the old packet into the new RST packet when rejecting with TCP resets.
ip_route_output is not smart enough to know about nfmark routing, and having the mark value set from start prevents mangle OUTPUT from rerouting the packet later..
Re: [patch] REJECT incorrectly inherits the current nfmark to the generated RST packet
Quoted 5 lines · Henrik Nordstrom
I have a smal patch not yet sent..
REJECT incorrecly inherits the current nfmark to the generated packet, inhibiting mangle from rerouting the generated RST packet correcly if attempting to set the same mark as the original packet that was REJECT:ed.
hm. this is in fact a bug. It might depend on one's point of view, and maybe there was a particular reason for the way it is currently implemented.
As far as I don't receive any complaints, I will submit this patch to the kernel soon. For now, it can be found in patch-o-matic/pending/
Quoted 1 line
Henrik
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)
PATCH 1/1 -M option unusable
In reply to Henrik NordstromHello,
This is just a small patch, guess the --modprobe option is not very popular :) It's vs the CVS userspace iptables.c file.
iptables.c Sat Jun 15 00:06:04 2002 renamed from iptables.c.old Sat Jun 15 00:06:12 2002 +1 -1
@@ -1682,7 +1682,7 @@ opterr = 0; while ((c = getopt_long(argc, argv, - "-A:C:D:R:I:L::F::Z::N:X::E:P:Vh::o:p:s:d:j:i:fbvnt:m:xc:", + "-A:C:D:R:I:L::F::Z::N:X::E:P:Vh::o:p:s:d:j:i:fbvnt:m:xc:M:", opts, NULL)) != -1) { switch (c) { /*
cheers,
Bart
Re: [PATCH] -M option unusable
Quoted 4 lines · Bart De Schuymer
Hello,
This is just a small patch, guess the --modprobe option is not very popular :) It's vs the CVS userspace
iptables.cfile.
thanks, patch applied (although slightly differnet)
Quoted 2 lines
cheers,
Bart
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)
PATCH 1/1 (trivial) memory leakage in userspace iptables.c::merge_options()
In reply to Bart De SchuymerHello,
This is just a small patch that free's unused memory in iptables.c::merge_options(). It's vs the file in the CVS.
Signature · 2 lines
cheers, Bart
iptables.c renamed from iptables.c.old +2 -0
@@ -986,6 +986,8 @@ merge[num_old + i].val += *option_offset; }memset (merge + num_old + num_new,0 ,sizeof (struct option )); +if (oldopts != original_opts) +free (oldopts);return merge; }