summaryrefslogtreecommitdiffstats
path: root/src/netlink_delinearize.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-12-22 17:45:48 +0100
committerPatrick McHardy <kaber@trash.net>2015-01-11 08:05:19 +0000
commitc39d8d7527e175d4a3744765b6742b854acdf5e4 (patch)
tree96d13a60ae89d71d6153fa0afec833677c16eab4 /src/netlink_delinearize.c
parent82f64cc664edb1e951064161704b6aa02b7d9f34 (diff)
netlink_delinearize: rename netlink_parse_*_sreg/dreg functions
These are really badly chosen names, use parse_expr and parse_stmt instead. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/netlink_delinearize.c')
-rw-r--r--src/netlink_delinearize.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index 79d5af6e..5a89fcea 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -342,7 +342,7 @@ static void netlink_parse_exthdr(struct netlink_parse_ctx *ctx,
expr);
}
-static void netlink_parse_meta_dreg(struct netlink_parse_ctx *ctx,
+static void netlink_parse_meta_expr(struct netlink_parse_ctx *ctx,
const struct location *loc,
const struct nft_rule_expr *nle)
{
@@ -355,7 +355,7 @@ static void netlink_parse_meta_dreg(struct netlink_parse_ctx *ctx,
expr);
}
-static void netlink_parse_meta_sreg(struct netlink_parse_ctx *ctx,
+static void netlink_parse_meta_stmt(struct netlink_parse_ctx *ctx,
const struct location *loc,
const struct nft_rule_expr *nle)
{
@@ -377,12 +377,12 @@ static void netlink_parse_meta(struct netlink_parse_ctx *ctx,
const struct nft_rule_expr *nle)
{
if (nft_rule_expr_is_set(nle, NFT_EXPR_META_DREG))
- netlink_parse_meta_dreg(ctx, loc, nle);
+ netlink_parse_meta_expr(ctx, loc, nle);
else
- netlink_parse_meta_sreg(ctx, loc, nle);
+ netlink_parse_meta_stmt(ctx, loc, nle);
}
-static void netlink_parse_ct_sreg(struct netlink_parse_ctx *ctx,
+static void netlink_parse_ct_stmt(struct netlink_parse_ctx *ctx,
const struct location *loc,
const struct nft_rule_expr *nle)
{
@@ -400,7 +400,7 @@ static void netlink_parse_ct_sreg(struct netlink_parse_ctx *ctx,
list_add_tail(&stmt->list, &ctx->rule->stmts);
}
-static void netlink_parse_ct_dreg(struct netlink_parse_ctx *ctx,
+static void netlink_parse_ct_expr(struct netlink_parse_ctx *ctx,
const struct location *loc,
const struct nft_rule_expr *nle)
{
@@ -417,9 +417,9 @@ static void netlink_parse_ct(struct netlink_parse_ctx *ctx,
const struct nft_rule_expr *nle)
{
if (nft_rule_expr_is_set(nle, NFT_EXPR_CT_DREG))
- netlink_parse_ct_dreg(ctx, loc, nle);
+ netlink_parse_ct_expr(ctx, loc, nle);
else
- netlink_parse_ct_sreg(ctx, loc, nle);
+ netlink_parse_ct_stmt(ctx, loc, nle);
}
static void netlink_parse_counter(struct netlink_parse_ctx *ctx,