From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: [PATCH][RESEND]: clear nf_debug in for ipsec-tunneled packets Date: Wed, 03 Sep 2003 13:07:37 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <3F55CB79.5050704@trash.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020603020807030008050609" Return-path: To: Netfilter Development Mailinglist Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org This is a multi-part message in MIME format. --------------020603020807030008050609 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit This patch for 2.6 clears nf_debug in ip_local_deliver_finish so the "hook ... already set" messages in nf_hook_slow won't get triggered for ipsec-tunneled packets. Regards, Patrick --------------020603020807030008050609 Content-Type: text/plain; name="pom-2.6-tunnel-debug.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pom-2.6-tunnel-debug.diff" diff -urN a/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff b/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff --- a/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff 1970-01-01 01:00:00.000000000 +0100 +++ b/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff 2003-08-24 23:17:43.000000000 +0200 @@ -0,0 +1,11 @@ +===== net/ipv4/ip_input.c 1.17 vs edited ===== +--- 1.17/net/ipv4/ip_input.c Mon Jun 16 17:11:36 2003 ++++ edited/net/ipv4/ip_input.c Sun Aug 24 23:11:36 2003 +@@ -201,6 +201,7 @@ + + #ifdef CONFIG_NETFILTER_DEBUG + nf_debug_ip_local_deliver(skb); ++ skb->nf_debug = 0; + #endif /*CONFIG_NETFILTER_DEBUG*/ + + __skb_pull(skb, ihl); diff -urN a/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff.help b/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff.help --- a/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff.help 1970-01-01 01:00:00.000000000 +0100 +++ b/patch-o-matic_2.5/pending/27-ipsec_tunnel-nf_debug.diff.help 2003-08-24 23:34:23.000000000 +0200 @@ -0,0 +1,7 @@ +Author: Patrick McHardy +Status: Working + +This patch clears nf_debug in ip_local_deliver_finish so the +"hook ... already set" message in nf_hook_slow won't get triggered for +decapsulated ipsec-tunnel packets when passing them through the network +stack again. --------------020603020807030008050609--