From c351f337b4e5c71b3551eef1d1b936d1e56b5601 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 27 Dec 2018 21:19:08 +0100 Subject: src: remove deprecated code for export/import commands Update parser to display this error message: # nft export json Error: JSON export is no longer supported, use 'nft -j list ruleset' instead export json ^^^^^^^^^^^^ Just like: # nft export vm json Error: JSON export is no longer supported, use 'nft -j list ruleset' instead export vm json ^^^^^^^^^^^^^^^ Signed-off-by: Pablo Neira Ayuso --- src/netlink.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/netlink.c') diff --git a/src/netlink.c b/src/netlink.c index fc9aeeff..f67f6390 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -1117,13 +1117,6 @@ int netlink_list_flowtables(struct netlink_ctx *ctx, const struct handle *h) return err; } -struct nftnl_ruleset *netlink_dump_ruleset(struct netlink_ctx *ctx, - const struct handle *h, - const struct location *loc) -{ - return mnl_nft_ruleset_dump(ctx, h->family); -} - static void trace_print_hdr(const struct nftnl_trace *nlt, struct output_ctx *octx) { @@ -1434,9 +1427,3 @@ int netlink_events_trace_cb(const struct nlmsghdr *nlh, int type, nftnl_trace_free(nlt); return MNL_CB_OK; } - -int netlink_markup_parse_cb(const struct nftnl_parse_ctx *ctx) -{ - errno = EOPNOTSUPP; - return -1; -} -- cgit v1.2.3