netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Yanchuan Nian <ycnian@gmail.com>
Cc: pablo@netfilter.org, netfilter-devel@vger.kernel.org
Subject: Re: Bug: nft cannot identify elements in set correctly
Date: Mon, 11 Aug 2014 11:32:17 +0200	[thread overview]
Message-ID: <20140811093217.GB14182@breakpoint.cc> (raw)
In-Reply-To: <1407748711-21183-1-git-send-email-ycnian@gmail.com>

Yanchuan Nian <ycnian@gmail.com> wrote:
> [root@localhost ~]# nft add set ip filter servicelist {type inet_service \;}
> [root@localhost ~]# nft add element ip filter servicelist {ftp,ssh}
> <cmdline>:1:35-37: Error: syntax error, unexpected string, expecting '{'
> add element ip filter servicelist ftp ssh

Missing escape ("\{"), see echo foo{bar,baz}

> [root@localhost ~]# nft add element ip filter servicelist {ftp, ssh}
> 
> There must be a space between ftp and ssh, otherwise bison ignores "{".

The { got removed by your shell before passing the arguments to nft.

      reply	other threads:[~2014-08-11  9:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11  9:18 Bug: nft cannot identify elements in set correctly Yanchuan Nian
2014-08-11  9:32 ` Florian Westphal [this message]

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=20140811093217.GB14182@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=ycnian@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).