diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-09 00:03:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-15 14:04:27 +0200 |
commit | 80077787f8f21da1efd8dc27a4c5767ab47a1df6 (patch) | |
tree | 01d9b399a1aad23d7ea1d1e1daa0ad98bec69e0a /src/obj/tunnel.c | |
parent | aaf20ad0dc22d2ebcad1b2c43288e984f0efe2c3 (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/obj/tunnel.c')
-rw-r--r-- | src/obj/tunnel.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/obj/tunnel.c b/src/obj/tunnel.c index 32ca0fd..5b2d9de 100644 --- a/src/obj/tunnel.c +++ b/src/obj/tunnel.c @@ -530,18 +530,6 @@ nftnl_obj_tunnel_parse(struct nftnl_obj *e, struct nlattr *attr) return 0; } -static int nftnl_obj_tunnel_export(char *buf, size_t size, - const struct nftnl_obj *e, int type) -{ - struct nftnl_obj_tunnel *tun = nftnl_obj_data(e); - NFTNL_BUF_INIT(b, buf, size); - - if (e->flags & (1 << NFTNL_OBJ_TUNNEL_ID)) - nftnl_buf_u64(&b, type, tun->id, ID); - - return nftnl_buf_done(&b); -} - static int nftnl_obj_tunnel_snprintf_default(char *buf, size_t len, const struct nftnl_obj *e) { @@ -561,7 +549,6 @@ static int nftnl_obj_tunnel_snprintf(char *buf, size_t len, uint32_t type, return nftnl_obj_tunnel_snprintf_default(buf, len, e); case NFTNL_OUTPUT_XML: case NFTNL_OUTPUT_JSON: - return nftnl_obj_tunnel_export(buf, len, e, type); default: break; } |