diff options
author | Phil Sutter <phil@nwl.cc> | 2018-06-08 17:27:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-06-11 11:31:49 +0200 |
commit | e8b5419b94e230d008d6701b66d02434a7cb1152 (patch) | |
tree | 0870685808e4259f7808f5e3ea797fe79e38e4f2 /src/socket.c | |
parent | cd102c36aedf2a8f65ff235a009f297352cd6b65 (diff) |
JSON: Add support for socket expression
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index d5f401f0..7cfe5a9d 100644 --- a/src/socket.c +++ b/src/socket.c @@ -11,6 +11,7 @@ #include <nftables.h> #include <expression.h> #include <socket.h> +#include <json.h> const struct socket_template socket_templates[] = { [NFT_SOCKET_TRANSPARENT] = {.token = "transparent", @@ -39,6 +40,7 @@ static const struct expr_ops socket_expr_ops = { .type = EXPR_SOCKET, .name = "socket", .print = socket_expr_print, + .json = socket_expr_json, .cmp = socket_expr_cmp, .clone = socket_expr_clone, }; |