Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Robert Sander <r.sander@heinlein-support.de>
Cc: netfilter@vger.kernel.org
Subject: Re: nft icmp type all?
Date: Sun, 26 Jan 2020 19:02:57 +0100	[thread overview]
Message-ID: <20200126180257.GC795@breakpoint.cc> (raw)
In-Reply-To: <01c0f25b-862b-cb00-3b5c-f8ac5852f37c@heinlein-support.de>

Robert Sander <r.sander@heinlein-support.de> wrote:
> Ah thanks. I overread the "protocol" keyword on the wiki page.
> 
> So you have to add protocol before "icmp" if you do not want to specify
> an icmp type (or tcp/udp port).
> 
> Is there any motivation for that?

Different things.

"ip protocol icmp" is short for
"ip protocol = icmp".

"icmp type x" is short for "icmp type = x".

So, "icmp type" is short for "icmp type =", i.e., the compare lacks
right-hand-side.


  reply	other threads:[~2020-01-26 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-24 21:16 nft icmp type all? Robert Sander
2020-01-24 21:29 ` kfm
2020-01-26  2:24   ` Daniel Lakeland
2020-01-26 17:35     ` Robert Sander
2020-01-26 18:02       ` Florian Westphal [this message]
2020-01-26 17:30   ` Robert Sander

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=20200126180257.GC795@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter@vger.kernel.org \
    --cc=r.sander@heinlein-support.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox