Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
struct nftnl_rule *r);
extern int netlink_list_chains(struct netlink_ctx *ctx, const struct handle *h);
-extern int netlink_flush_chain(struct netlink_ctx *ctx, const struct cmd *cmd);
extern struct chain *netlink_delinearize_chain(struct netlink_ctx *ctx,
const struct nftnl_chain *nlc);
return 0;
}
-int netlink_flush_chain(struct netlink_ctx *ctx, const struct cmd *cmd)
-{
- return mnl_nft_rule_del(ctx, cmd);
-}
-
struct table *netlink_delinearize_table(struct netlink_ctx *ctx,
const struct nftnl_table *nlt)
{
{
switch (cmd->obj) {
case CMD_OBJ_TABLE:
- return mnl_nft_rule_del(ctx, cmd);
case CMD_OBJ_CHAIN:
- return netlink_flush_chain(ctx, cmd);
+ return mnl_nft_rule_del(ctx, cmd);
case CMD_OBJ_SET:
case CMD_OBJ_MAP:
case CMD_OBJ_METER: