From: lists brk Subject: Deleting iptable-extended rule Date: Wed, 4 Dec 2002 14:52:19 -0800 (PST) Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20021204225219.78871.qmail@web41309.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: brk_lists@yahoo.com Return-path: To: netfilter-devel@lists.netfilter.org 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 Hi! I am using iptables-1.2.7a. I have extended iptables to do a coustom matching operation. The extension works fine when I use it while adding new rules, something like iptables -A INPUT -m coustom --ip-id -j DROP. I am able to delete the rule using the rule number, but I am not able to remove it using the rule specifed above but with -D option, something like iptables -D INPUT -m coustom --ip-id -j DROP The error I get is: iptables: Bad rule (does a matching rule exist in that chain?) I tried to debug it and found that iptables fails at mptr = matchmask + sizeof(STRUCT_ENTRY); if (IPT_MATCH_ITERATE(a, match_different, a->elems, b->elems, &mptr)) return 0; in is_same() found in file libiptc/libip4tc.c Any ideas why this might be happening?? Thanks, brk __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now. http://mailplus.yahoo.com