Displaying 1 result from an estimated 1 matches for "nfnl_nft_rule_add_expr".
2013 Jun 08
2
[Bug 827] New: limit: support is broken
...netlink_gen_limit_stmt(struct netlink_linearize_ctx *ctx,
const struct stmt *stmt)
{
struct nfnl_nft_expr *nle;
nle = alloc_nft_expr(nfnl_nft_limit_init);
nfnl_nft_limit_set_rate(nle, stmt->limit.rate);
nfnl_nft_limit_set_depth(nle, stmt->limit.depth);
nfnl_nft_rule_add_expr(ctx->nlr, nle);
}
</pre>
but in parser.y we have:
<pre>
limit_stmt : LIMIT RATE NUM SLASH time_unit
{
$$ = limit_stmt_alloc(&@$);
$$->limit.rate = $3;
$$->limit.unit = $5;...