From: Amin Azez Subject: Re: [PATCH] ipset matches either,both Date: Mon, 07 Aug 2006 14:21:26 +0100 Message-ID: <44D73E56.9070102@ufomechanic.net> References: <44D6FF0A.8050009@ufomechanic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Jozsef Kadlecsik In-Reply-To: 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 * Jozsef Kadlecsik wrote, On 07/08/06 11:49: > >From the svn changelog: > > iptables.c, rev 6474, modified Fri Mar 3 09:36:50 2006 UTC (5 months ago): > > Multiple matches of the same type can be specified on the commandline. > > If two or more matches of the same type are detected then the options > are assumed to be grouped in order to tell which option belongs > to which match: > > ... -m foo ... ... -m foo ... ... > > Otherwise the commandline parsing is unmodified. > dang, I missed that. ... > I'm open to feature requests and suggestions for the next revisions but > still not convinced about "both" and "either", sorry: > > "both" is equal to -m set --set foo src -m set --set foo dst > "neither" is equal to -m set ! --set foo src -m ! set --set foo dst > "either" can be expressed by two iptables rules. > > So what can we gain? > indeed. *sob* Sam