summaryrefslogtreecommitdiffstats
path: root/src/expr/socket.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-10-09 00:03:28 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-10-15 14:04:27 +0200
commit80077787f8f21da1efd8dc27a4c5767ab47a1df6 (patch)
tree01d9b399a1aad23d7ea1d1e1daa0ad98bec69e0a /src/expr/socket.c
parentaaf20ad0dc22d2ebcad1b2c43288e984f0efe2c3 (diff)
src: remove json support
We have better json support in libnftables these days. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr/socket.c')
-rw-r--r--src/expr/socket.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/expr/socket.c b/src/expr/socket.c
index 5fa2ef2..704b1d9 100644
--- a/src/expr/socket.c
+++ b/src/expr/socket.c
@@ -151,20 +151,6 @@ nftnl_expr_socket_snprintf_default(char *buf, size_t len,
return 0;
}
-static int nftnl_expr_socket_export(char *buf, size_t size,
- const struct nftnl_expr *e, int type)
-{
- struct nftnl_expr_socket *socket = nftnl_expr_data(e);
- NFTNL_BUF_INIT(b, buf, size);
-
- if (e->flags & (1 << NFTNL_EXPR_SOCKET_DREG))
- nftnl_buf_u32(&b, type, socket->dreg, DREG);
- if (e->flags & (1 << NFTNL_EXPR_SOCKET_KEY))
- nftnl_buf_str(&b, type, socket_key2str(socket->key), KEY);
-
- return nftnl_buf_done(&b);
-}
-
static int
nftnl_expr_socket_snprintf(char *buf, size_t len, uint32_t type,
uint32_t flags, const struct nftnl_expr *e)
@@ -174,7 +160,6 @@ nftnl_expr_socket_snprintf(char *buf, size_t len, uint32_t type,
return nftnl_expr_socket_snprintf_default(buf, len, e);
case NFTNL_OUTPUT_XML:
case NFTNL_OUTPUT_JSON:
- return nftnl_expr_socket_export(buf, len, e, type);
default:
break;
}