Lines Matching refs:target

68 	par->target	= xt;
78 struct xt_target *target = expr->ops->data;
83 nft_compat_set_par(&xt, pkt, target, info);
85 ret = target->target(skb, &xt);
105 struct xt_target *target = expr->ops->data;
110 nft_compat_set_par(&xt, pkt, target, info);
112 ret = target->target(skb, &xt);
145 struct xt_target *target, void *info,
170 par->target = target;
247 struct xt_target *target = expr->ops->data;
255 target_compat_from_user(target, nla_data(tb[NFTA_TARGET_INFO]), info);
263 nft_target_set_tgchk_param(&par, ctx, target, info, &e, proto, inv);
272 if (strcmp(target->name, "LOG") == 0)
274 else if (strcmp(target->name, "NFLOG") == 0)
285 /* The standard target cannot be used */
286 if (!target->target)
301 struct xt_target *target = expr->ops->data;
303 struct module *me = target->me;
307 par.target = target;
310 if (par.target->destroy != NULL)
311 par.target->destroy(&par);
337 const struct xt_target *target = expr->ops->data;
340 if (nla_put_string(skb, NFTA_TARGET_NAME, target->name) ||
341 nla_put_be32(skb, NFTA_TARGET_REV, htonl(target->revision)) ||
343 target->targetsize, target->usersize))
356 struct xt_target *target = expr->ops->data;
382 if (target->hooks && !(hook_mask & target->hooks))
385 ret = nft_compat_chain_validate_dependency(ctx, target->table);
656 int rev, int target)
669 nla_put_be32(skb, NFTA_COMPAT_TYPE, htonl(target)))
688 int ret = 0, target;
698 target = ntohl(nla_get_be32(tb[NFTA_COMPAT_TYPE]));
722 try_then_request_module(xt_find_revision(family, name, rev, target, &ret),
738 family, name, ret, target) <= 0) {
870 struct xt_target *target;
889 target = xt_request_find_target(family, tg_name, rev);
890 if (IS_ERR(target))
893 if (!target->target) {
898 if (target->targetsize > nla_len(tb[NFTA_TARGET_INFO])) {
910 ops->size = NFT_EXPR_SIZE(XT_ALIGN(target->targetsize));
915 ops->data = target;
925 module_put(target->me);
931 struct xt_target *target = ops->data;
933 module_put(target->me);
938 .name = "target",
987 MODULE_ALIAS_NFT_EXPR("target");