Skip to contentSkip to conversation

include: json: add missing synproxy stmt print stub

PATCH In review Fernando Fernandez Mancera 2 participants 3 messages Jul 18, 2019 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include: json: add missing synproxy stmt print stub

Fixes 1188a69604c3 ("src: introduce SYNPROXY matching")
---
 include/json.h | 1 +
 1 file changed, 1 insertion(+)
include/json.h +1 -0
index ce57c9f..7f2df7c 100644
@@ -180,6 +180,7 @@ STMT_PRINT_STUB(queue)
 STMT_PRINT_STUB(verdict)
 STMT_PRINT_STUB(connlimit)
 STMT_PRINT_STUB(tproxy)
+STMT_PRINT_STUB(synproxy)
 
 #undef STMT_PRINT_STUB
 #undef EXPR_PRINT_STUB
Signature · 1 line
2.20.1
#1 lore raw

Hi Fernando,

Quoted 11 lines · Fernando Fernandez Mancera
Fixes 1188a69604c3 ("src: introduce SYNPROXY matching")
---
 include/json.h | 1 +
 1 file changed, 1 insertion(+)
include/json.h +0 -0
index ce57c9f..7f2df7c 100644

include/json.h STMT_PRINT_STUB(queue) · line 183

Quoted 4 lines
include/json.h +1 -0
@@ -180,6 +180,7 @@ STMT_PRINT_STUB(queue)
 STMT_PRINT_STUB(verdict)
 STMT_PRINT_STUB(connlimit)
 STMT_PRINT_STUB(tproxy)
+STMT_PRINT_STUB(synproxy)

I'm sure you need this, but how does this missing line manifests as a problem?

#2 lore raw

Hi Pablo,

Quoted 9 lines · Pablo Neira Ayuso

Hi Fernando,

Quoted 6 lines · Fernando Fernandez Mancera
Fixes 1188a69604c3 ("src: introduce SYNPROXY matching")
---
 include/json.h | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

include/json.h STMT_PRINT_STUB(queue) · line 183

Quoted 9 lines
include/json.h +1 -0
index ce57c9f..7f2df7c 100644
@@ -180,6 +180,7 @@ STMT_PRINT_STUB(queue)
 STMT_PRINT_STUB(verdict)
 STMT_PRINT_STUB(connlimit)
 STMT_PRINT_STUB(tproxy)
+STMT_PRINT_STUB(synproxy)

I'm sure you need this, but how does this missing line manifests as a problem?

When compiling nftables without json support I am getting the following error.

statement.c:930:11: error: ‘synproxy_stmt_json’ undeclared here (not in a function); did you mean ‘tproxy_stmt_json’?
.json = synproxy_stmt_json,

           ^~~~~~~~~~~~~~~~~~
           tproxy_stmt_json