Home
last modified time | relevance | path

Searched refs:expr_info (Results 1 – 2 of 2) sorted by relevance

/linux/net/netfilter/
H A Dnft_inner.c330 struct nft_expr_info expr_info; in nft_inner_init() local
363 err = nft_expr_inner_parse(ctx, tb[NFTA_INNER_EXPR], &expr_info); in nft_inner_init()
367 priv->expr.ops = expr_info.ops; in nft_inner_init()
369 if (!strcmp(expr_info.ops->type->name, "payload")) in nft_inner_init()
371 else if (!strcmp(expr_info.ops->type->name, "meta")) in nft_inner_init()
376 err = expr_info.ops->init(ctx, (struct nft_expr *)&priv->expr, in nft_inner_init()
377 (const struct nlattr * const*)expr_info.tb); in nft_inner_init()
H A Dnf_tables_api.c3435 const struct nft_expr_info *expr_info, in nf_tables_newexpr() argument
3438 const struct nft_expr_ops *ops = expr_info->ops; in nf_tables_newexpr()
3443 err = ops->init(ctx, expr, (const struct nlattr **)expr_info->tb); in nf_tables_newexpr()
3467 struct nft_expr_info expr_info; in nft_expr_init() local
3472 err = nf_tables_expr_parse(ctx, nla, &expr_info); in nft_expr_init()
3477 if (!(expr_info.ops->type->flags & NFT_EXPR_STATEFUL)) in nft_expr_init()
3481 expr = kzalloc(expr_info.ops->size, GFP_KERNEL_ACCOUNT); in nft_expr_init()
3485 err = nf_tables_newexpr(ctx, &expr_info, expr); in nft_expr_init()
3493 owner = expr_info.ops->type->owner; in nft_expr_init()
3494 if (expr_info.ops->type->release_ops) in nft_expr_init()
[all …]