Skip to content

Commit

Permalink
netfilter: nft_limit: rename to nft_limit_pkts
Browse files Browse the repository at this point in the history
To prepare introduction of bytes ratelimit support.

Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
ummakynes committed Aug 7, 2015
1 parent d877f07 commit 09e4e42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions net/netfilter/nft_limit.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ struct nft_limit {
unsigned long stamp;
};

static void nft_limit_eval(const struct nft_expr *expr,
struct nft_regs *regs,
const struct nft_pktinfo *pkt)
static void nft_limit_pkts_eval(const struct nft_expr *expr,
struct nft_regs *regs,
const struct nft_pktinfo *pkt)
{
struct nft_limit *priv = nft_expr_priv(expr);

Expand Down Expand Up @@ -85,17 +85,17 @@ static int nft_limit_dump(struct sk_buff *skb, const struct nft_expr *expr)
}

static struct nft_expr_type nft_limit_type;
static const struct nft_expr_ops nft_limit_ops = {
static const struct nft_expr_ops nft_limit_pkts_ops = {
.type = &nft_limit_type,
.size = NFT_EXPR_SIZE(sizeof(struct nft_limit)),
.eval = nft_limit_eval,
.eval = nft_limit_pkts_eval,
.init = nft_limit_init,
.dump = nft_limit_dump,
};

static struct nft_expr_type nft_limit_type __read_mostly = {
.name = "limit",
.ops = &nft_limit_ops,
.ops = &nft_limit_pkts_ops,
.policy = nft_limit_policy,
.maxattr = NFTA_LIMIT_MAX,
.flags = NFT_EXPR_STATEFUL,
Expand Down

0 comments on commit 09e4e42

Please sign in to comment.