From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Jian Subject: About matching Date: Thu, 07 Apr 2005 00:12:19 +0800 Message-ID: <20050407000158.02AA.LARK@linux.net.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Hi, I haven't looked into code on how these two rules are evaluated iptables -j CONNMARK --set-mark value/mask iptables -j RETURN How many times the match rule 1 is evaluated when matched? If two, then the second time is waste of CPU cycle. Then think these three iptables -j CONNMARK --set-mark value/mask iptables -j CONNMARK --restore --mask mask iptables -j RETURN Are there any optimization for such case? -- lark