Skip to content

Commit

Permalink
netfilter: nf_tables: rename nf_table_delrule_by_chain()
Browse files Browse the repository at this point in the history
For the sake of homogenize the function naming scheme, let's rename
nf_table_delrule_by_chain() to nft_delrule_by_chain().

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Arturo Borrero authored and Pablo Neira Ayuso committed Sep 9, 2014
1 parent c559879 commit ce24b72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/netfilter/nf_tables_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ static int nft_delrule(struct nft_ctx *ctx, struct nft_rule *rule)
return 0;
}

static int nf_table_delrule_by_chain(struct nft_ctx *ctx)
static int nft_delrule_by_chain(struct nft_ctx *ctx)
{
struct nft_rule *rule;
int err;
Expand Down Expand Up @@ -1955,12 +1955,12 @@ static int nf_tables_delrule(struct sock *nlsk, struct sk_buff *skb,

err = nft_delrule(&ctx, rule);
} else {
err = nf_table_delrule_by_chain(&ctx);
err = nft_delrule_by_chain(&ctx);
}
} else {
list_for_each_entry(chain, &table->chains, list) {
ctx.chain = chain;
err = nf_table_delrule_by_chain(&ctx);
err = nft_delrule_by_chain(&ctx);
if (err < 0)
break;
}
Expand Down

0 comments on commit ce24b72

Please sign in to comment.