summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-09-24 13:49:05 +0200
committerPatrick McHardy <kaber@trash.net>2014-09-24 13:49:05 +0200
commit30a7eb9eecba7d5f83d28c284948ed7448d28fc0 (patch)
tree90fce3244f1aac276c381c9d12d70865cd908057 /include
parentd68824c96f2e8cee14b6a505c91fd379b9aa3088 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/statement.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/statement.h b/include/statement.h
index 12336bc0..e2f02b8c 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -70,8 +70,7 @@ struct nat_stmt {
extern struct stmt *nat_stmt_alloc(const struct location *loc);
struct queue_stmt {
- uint16_t from;
- uint16_t to;
+ struct expr *queue;
uint16_t flags;
};