[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090215173502.GB19556@ioremap.net>
Date: Sun, 15 Feb 2009 20:35:03 +0300
From: Evgeniy Polyakov <zbr@...emap.net>
To: Jan Engelhardt <jengelh@...ozas.de>
Cc: Patrick McHardy <kaber@...sh.net>, netdev@...r.kernel.org,
David Miller <davem@...emloft.net>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Netfilter Development Mailinglist
<netfilter-devel@...r.kernel.org>
Subject: Re: Passive OS fingerprint xtables match (iptables part)
On Fri, Feb 13, 2009 at 02:54:25PM +0100, Jan Engelhardt (jengelh@...ozas.de) wrote:
> >'! --genre Linux' means this option was not specified,
> >'--genre ! Linux' means everything but Linux.
>
> Well not in iptables. Not specifying an option is represented by
> voidness/absence of any string. (E.g. iptables -d 192.168.0.0/16 vs.
> iptables ! -s 172.16.0.0/12 -d 192.168.0.0/16)
> Also, (!(--genre == "linux")) is eqv. (--genre != "linux")
> is equivalent in boolean logic ;-)
And that's not what should be :)
In the code it is intended to be:
(--genre && (--genre != Linux))
But I really do not care where to put a '!' sign in the documentation
string :)
--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists