expr: add jool support
PATCH 1/2 expr: add jool support
Jool statements are used to send packets to the Jool kernel module, which is an IP/ICMP translator: www.jool.mx
This feature was requested in Jool's bug tracker:
https://github.com/NICMx/Jool/issues/285
Signed-off-by Alberto Leiva Popper <[email protected]>
--- include/libnftnl/expr.h | 5 ++ src/Makefile.am | 1 + src/expr/jool.c | 193 ++++++++++++++++++++++++++++++++++++++++ src/expr_ops.c | 2 + 4 files changed, 201 insertions(+) create mode 100644 src/expr/jool.c
include/libnftnl/expr.h +5 -0
@@ -299,6 +299,11 @@ enum { NFTNL_EXPR_SYNPROXY_FLAGS, }; +enum { +NFTNL_EXPR_JOOL_TYPE =NFTNL_EXPR_BASE , +NFTNL_EXPR_JOOL_INSTANCE , +}; + #ifdef __cplusplus }/* extern "C" */ #endif
src/Makefile.am +1 -0
@@ -57,6 +57,7 @@ libnftnl_la_SOURCES = utils.c \ expr/hash.c \ expr/socket.c \ expr/synproxy.c \ + expr/jool.c \ expr/osf.c \ expr/xfrm.c \ obj/counter.c \
src/expr/jool.c new file +193 -0
193 lines not on this page · raw message
src/expr_ops.c +2 -0
@@ -38,6 +38,7 @@ extern struct expr_ops expr_ops_fib;extern struct expr_ops expr_ops_flow;extern struct expr_ops expr_ops_socket;extern struct expr_ops expr_ops_synproxy; +extern struct expr_ops expr_ops_jool;extern struct expr_ops expr_ops_tunnel;extern struct expr_ops expr_ops_osf;extern struct expr_ops expr_ops_xfrm;
@@ -82,6 +83,7 @@ static struct expr_ops *expr_ops[] = { &expr_ops_flow, &expr_ops_socket, &expr_ops_synproxy, + &expr_ops_jool, &expr_ops_tunnel, &expr_ops_osf, &expr_ops_xfrm,
Signature · 1 line
2.17.1