netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nft: parser problem, can use mark as datatype in sets and maps
@ 2015-08-10 13:48 Andreas Schultz
  2015-08-10 17:09 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schultz @ 2015-08-10 13:48 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Pablo Neira Ayuso

Hi,

The data type definition for mark and the general idea of the parser
indicate that the following nft statements should work:
 
  # nft add map filter MAP1 { type ipv4_addr : mark\; }
  # nft add set filter SET1 { type mark\; }

However, both fail with a similar error message:

  <cmdline>:1:40-43: Error: syntax error, unexpected mark, expecting string
  add map filter MAP1 { type ipv4_addr : mark; }
  <cmdline>:1:28-31: Error: syntax error, unexpected mark, expecting string
  add set filter SET1 { type mark; }

The problem is parser, it expects a string as data type spec, but
mark is already declared as a token.

I don't have much experience with bison, so does anyone have a quick
work-around for this?

Andreas

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-08-11 12:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-10 13:48 nft: parser problem, can use mark as datatype in sets and maps Andreas Schultz
2015-08-10 17:09 ` Pablo Neira Ayuso
2015-08-11  9:18   ` Andreas Schultz
2015-08-11 10:41     ` Pablo Neira Ayuso
2015-08-11 11:25       ` Andreas Schultz
2015-08-11 12:12         ` Pablo Neira Ayuso
2015-08-11 12:23           ` Pablo Neira Ayuso
2015-08-11 12:28             ` Andreas Schultz

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).