Skip to contentSkip to conversation

2.5.x iptables iptable_mangle LOCAL_IN bugfix

PATCH New Harald Welte 1 participant 1 message Mar 30, 2003

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

PATCH 1/1 2.5.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.5.x, the 2.4.x fix was in my last 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.5.66-plain/net/ipv4/netfilter/iptable_mangle.c linux-2.5.66-nftest/net/ipv4/netfilter/iptable_mangle.c
@@ -179,7 +179,7 @@
 		.priority	= NF_IP_PRI_MANGLE,
 	},
 	{
-		.hook		= ipt_local_hook,
+		.hook		= ipt_route_hook,
 		.pf		= PF_INET,
 		.hooknum	= NF_IP_LOCAL_IN,
 		.priority	= 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