]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
netfilter: nf_tables: rename nf_table_delrule_by_chain()
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Tue, 2 Sep 2014 14:42:24 +0000 (16:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Sep 2014 14:31:22 +0000 (16:31 +0200)
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>
net/netfilter/nf_tables_api.c

index 90e3496511789a91661059d62f7e16df74cff55c..eac4fab6d63bc131076cc749728e65602e39ead0 100644 (file)
@@ -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;
@@ -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;
                }