From mboxrd@z Thu Jan 1 00:00:00 1970 From: "johnpeng" Subject: Multiple calls of check functions Date: Mon, 2 Apr 2007 17:22:47 +0800 Message-ID: <29392.0101634741$1175512084@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Return-path: 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 Dear all: When I issue the command with debug version of the SAME target (I am using kernel 2.6.17.7 and iptables 1.3.5) "iptables -t nat -A PREROUTING -d 10.10.10.1 -j SAME -to 172.31.0.1-172.31.0.3" I find that the check function of SAME target would be called multiple times, any following SNAT,DNAT rules would call the check function of the SAME Target , however, I didn't see the same situation in kernel 2.4 , is that due to some framework change in kernel 2.6 ? And When we issue the removal "iptables -t nat -D PREROUTING -d 10.10.10.1 -j SAME -to 172.31.0.1-172.31.0.3", Iptables get reply of "iptables: No chain/target/match by that name", it seems the memory comparison is not equal with user level and kernel level passed target info data structure, Any solution? Thanks for your help!! JohnPeng