All of lore.kernel.org
 help / color / mirror / Atom feed
From: Valentijn Sessink <valentyn@blub.net>
To: netfilter@vger.kernel.org
Subject: short circuit evaluations?
Date: Mon, 21 Feb 2011 00:04:13 +0100	[thread overview]
Message-ID: <4D619DED.6090405@blub.net> (raw)

Hello list,

Does iptables do short circuit evaluation?

Let me try to explain. I now have:
iptables -A chain -m recent --name evil \
       --seconds 900 --hitcount 15 -j block
iptables -A block -m recent --name block --set

If iptables does short circuit evaluation and it does this reliably 
(i.e. by design/documented/will not change without warning), then I can 
replace this with:

iptables -A chain -m recent --name evil \
       --seconds 900 --hitcount 15 \
       -m recent --name block --set

(Which is much harder to read, so much safer. HHOK ;)

Best regards,

Valentijn

             reply	other threads:[~2011-02-20 23:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 23:04 Valentijn Sessink [this message]
2011-02-20 23:28 ` short circuit evaluations? Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D619DED.6090405@blub.net \
    --to=valentyn@blub.net \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.