Skip to contentSkip to conversation

2.4.x iptables iptable_mangle LOCAL_IN bugfix

PATCH In review Harald Welte 2 participants 2 messages Mar 30, 2003 – Mar 31, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.x iptables iptable_mangle LOCAL_IN bugfix

Hi Davem!

The patch below fixes a bug when the MARK target is used in the INPUT chain of the mangle table.

This one is for 2.4.x, expect the 2.5.x fix in my next email.

Please apply, thanks.

net/ipv4/netfilter/iptable_mangle.c +1 -1
diff -Nru --exclude .depend --exclude *.o --exclude *.ver --exclude .*.flags --exclude *.orig --exclude *.rej --exclude *~ linux-2.4.20-plain/net/ipv4/netfilter/iptable_mangle.c linux-2.4.20-mangleinput/net/ipv4/netfilter/iptable_mangle.c
@@ -170,7 +170,7 @@
 static struct nf_hook_ops ipt_ops[]
 = { { { NULL, NULL }, ipt_route_hook, PF_INET, NF_IP_PRE_ROUTING, 
 	NF_IP_PRI_MANGLE },
-    { { NULL, NULL }, ipt_local_hook, PF_INET, NF_IP_LOCAL_IN,
+    { { NULL, NULL }, ipt_route_hook, PF_INET, NF_IP_LOCAL_IN,
 	NF_IP_PRI_MANGLE },
     { { NULL, NULL }, ipt_route_hook, PF_INET, NF_IP_FORWARD,
 	NF_IP_PRI_MANGLE },
Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
#1 lore raw

From: Harald Welte <[email protected]>
Date: Sun, 30 Mar 2003 21:36:41 +0200

The patch below fixes a bug when the MARK target is used in the INPUT chain of the mangle table.

This one is for 2.4.x, expect the 2.5.x fix in my next email.

Both 2.4.x and 2.5.x patches applied, thank you.