Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Stefan Berghofer <stefan.berghofer@secunet.com>
To: netfilter@vger.kernel.org
Subject: nftables: Example involving payload_raw_expr
Date: Mon, 30 Nov 2015 14:28:38 +0100	[thread overview]
Message-ID: <565C4F06.5030102@secunet.com> (raw)

Hi all,

I just tried out the example file tests/payload-ll distributed with nftables,
which makes use of payload raw expressions of the form "@..,..,..". While the first
two declarations in the file, i.e.

  nft add table ip filter
  nft add chain ip filter input \{ type filter hook input priority 0\; \}

work as expected, the third declaration

  nft add rule ip filter input @ll,48,48 00:15:e9:f0:10:f8 counter

is rejected with the error message

  Error: protocol specification is invalid for this family

(the expression "@ll,48,48" is underlined in the output). Does the example use
an outdated syntax, or have I done something wrong?

Is there any documentation on how to use payload raw expressions? I couldn't find
any mention of it in the wiki or the manpage of nftables.

I am using Linux Kernel 4.2.4, together with the latest repository version of
libnftnl and nftables.

Greetings,
Stefan

-- 
Dr. Stefan Berghofer
Senior Consultant, Network & Client Security
Public Authorities
secunet Security Networks AG

Phone: +49 201 54 54-3606, Fax: +49 201 54 54-1323
E-Mail: stefan.berghofer@secunet.com
Ammonstrafle 74, 01067 Dresden, Germany
www.secunet.com

______________________________________________________________________

Registered at: Kronprinzenstrafle 30, 45128 Essen, Deutschland
Amtsgericht Essen HRB 13615
Management Board: Dr Rainer Baumgart (CEO), Thomas Pleines
Chairman of Supervisory Board: Dr Peter Zattler
______________________________________________________________________

             reply	other threads:[~2015-11-30 13:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30 13:28 Stefan Berghofer [this message]
2015-12-14 17:29 ` nftables: Example involving payload_raw_expr Pablo Neira Ayuso

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=565C4F06.5030102@secunet.com \
    --to=stefan.berghofer@secunet.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox