Skip to contentSkip to conversation

src: use 'flow add' syntax

PATCH Superseded Pablo Neira Ayuso 1 participant 2 messages Mar 20, 2019 netfilter

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/2 src: use 'flow add' syntax

As discussed during NFWS 2018. Old syntax is stilled allowed.

---
 src/ct.c           | 2 +-
 src/parser_bison.y | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
src/ct.c +1 -1
index e77c3201eb5d..ca31f49850d4 100644
@@ -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
index 48e44e5adc40..65b3fb3ebac2 100644
@@ -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
author maintainer
#1 lore raw

PATCH 2/2 build: missing misspell.h in Makefile.am

---
 include/Makefile.am | 1 +
 1 file changed, 1 insertion(+)
include/Makefile.am +1 -0
index c103f4853bcc..b1f4fcf29015 100644
@@ -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