From 079041bd477f444d29e02c6442351c0ed6ffaa1e Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 29 Dec 2013 19:28:10 +0100 Subject: src: add support for queue This patch adds support for the queue target. It is now possible to specify rule sending packet to a given queue and using load balancing: nft add rule filter output queue num 3 total 2 options fanout Signed-off-by: Eric Leblond Signed-off-by: Pablo Neira Ayuso --- src/scanner.l | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/scanner.l') diff --git a/src/scanner.l b/src/scanner.l index cee6aa6e..8c4f25d2 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -234,7 +234,6 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "jump" { return JUMP; } "goto" { return GOTO; } "return" { return RETURN; } -"queue" { return QUEUE; } "add" { return ADD; } "insert" { return INSERT; } @@ -255,6 +254,13 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "snaplen" { return SNAPLEN; } "queue-threshold" { return QUEUE_THRESHOLD; } +"queue" { return QUEUE;} +"num" { return QUEUENUM;} +"total" { return QUEUETOTAL;} +"bypass" { return QUEUEBYPASS;} +"fanout" { return QUEUECPUFANOUT;} +"options" { return OPTIONS;} + "limit" { return LIMIT; } "rate" { return RATE; } -- cgit v1.2.3