]> git.ipfire.org Git - thirdparty/nftables.git/commit
queue: clean up queue statement
authorPatrick McHardy <kaber@trash.net>
Wed, 24 Sep 2014 11:49:05 +0000 (13:49 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 24 Sep 2014 11:49:05 +0000 (13:49 +0200)
commit30a7eb9eecba7d5f83d28c284948ed7448d28fc0
tree90fce3244f1aac276c381c9d12d70865cd908057
parentd68824c96f2e8cee14b6a505c91fd379b9aa3088
queue: clean up queue statement

- Rename keyword tokens to their actual keyword
- Change the grammar to follow the standard schema for statements and arguments
- Use actual expression for the queue numbers to support using normal range
  expressions, symbolic expression and so on.
- restore comma seperation of flag keywords

The result is that its possible to use standard ranges, prefix expressions,
symbolic expressions etc for the queue number. We get checks for overflow,
negative ranges and so on automatically.

The comma seperation of flags is more similar to what we have for other
flag values. It is still possible to use spaces, however this could be
removed since we never had a release supporting that.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/statement.h
src/evaluate.c
src/netlink_delinearize.c
src/netlink_linearize.c
src/parser.y
src/scanner.l
src/statement.c