src: use 'flow add' syntax
Pablo Neira Ayuso
maintainerPATCH 1/2 src: use 'flow add' syntax
As discussed during NFWS 2018. Old syntax is stilled allowed.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/ct.c | 2 +- src/parser_bison.y | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
src/ct.c +1 -1
@@ -481,7 +481,7 @@ struct stmt *notrack_stmt_alloc(const struct location *loc)static void flow_offload_stmt_print (const struct stmt *stmt,struct output_ctx *octx) { -printf ("flow offload @%s" , stmt->flow.table_name); +printf ("flow add @%s" , stmt->flow.table_name); }static const struct stmt_ops flow_offload_stmt_ops = {
src/parser_bison.y +4 -0
@@ -3915,6 +3915,10 @@ meta_stmt : META meta_key SET stmt_expr { $$ = flow_offload_stmt_alloc(&@$, $4); } + | FLOW ADD AT string + { + $$ = flow_offload_stmt_alloc(&@$, $4); + } ; socket_expr : SOCKET socket_key
Signature · 1 line
2.11.0
Pablo Neira Ayuso
maintainerPATCH 2/2 build: missing misspell.h in Makefile.am
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- include/Makefile.am | 1 + 1 file changed, 1 insertion(+)
include/Makefile.am +1 -0
@@ -22,6 +22,7 @@ noinst_HEADERS = cli.h \ headers.h \ list.h \ meta.h \ + misspell.h \ numgen.h \ netlink.h \ osf.h \
Signature · 1 line
2.11.0