Searched defs:ctx (Results 1 - 25 of 42) sorted by relevance

12

/net/netfilter/
H A Dnft_masq.c24 int nft_masq_init(const struct nft_ctx *ctx, argument
31 err = nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT);
63 int nft_masq_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, argument
66 return nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT);
H A Dnft_reject.c29 int nft_reject_init(const struct nft_ctx *ctx, argument
H A Dnft_expr_template.c34 static int nft_template_init(const struct nft_ctx *ctx, argument
43 static void nft_template_destroy(const struct nft_ctx *ctx, argument
H A Dnft_reject_inet.c62 static int nft_reject_inet_init(const struct nft_ctx *ctx, argument
H A Dnft_bitwise.c51 static int nft_bitwise_init(const struct nft_ctx *ctx, argument
75 err = nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
H A Dnft_counter.c66 static int nft_counter_init(const struct nft_ctx *ctx, argument
H A Dnft_exthdr.c56 static int nft_exthdr_init(const struct nft_ctx *ctx, argument
80 return nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
H A Dnft_immediate.c40 static int nft_immediate_init(const struct nft_ctx *ctx, argument
57 err = nft_data_init(ctx, &priv->data, &desc, tb[NFTA_IMMEDIATE_DATA]);
62 err = nft_validate_data_load(ctx, priv->dreg, &priv->data, desc.type);
73 static void nft_immediate_destroy(const struct nft_ctx *ctx, argument
94 static int nft_immediate_validate(const struct nft_ctx *ctx, argument
H A Dnft_limit.c56 static int nft_limit_init(const struct nft_ctx *ctx, argument
H A Dnft_log.c49 static int nft_log_init(const struct nft_ctx *ctx, argument
101 if (ctx->afi->family == NFPROTO_INET) {
114 return nf_logger_find_get(ctx->afi->family, li->type);
117 static void nft_log_destroy(const struct nft_ctx *ctx, argument
126 if (ctx->afi->family == NFPROTO_INET) {
130 nf_logger_put(ctx->afi->family, li->type);
H A Dnft_lookup.c46 static int nft_lookup_init(const struct nft_ctx *ctx, argument
58 set = nf_tables_set_lookup(ctx->table, tb[NFTA_LOOKUP_SET]);
61 set = nf_tables_set_lookup_byid(ctx->net,
90 err = nf_tables_bind_set(ctx, set, &priv->binding);
98 static void nft_lookup_destroy(const struct nft_ctx *ctx, argument
103 nf_tables_unbind_set(ctx, priv->set, &priv->binding);
H A Dnft_meta.c210 int nft_meta_get_init(const struct nft_ctx *ctx, argument
253 err = nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
261 int nft_meta_set_init(const struct nft_ctx *ctx, argument
338 nft_meta_select_ops(const struct nft_ctx *ctx, argument
H A Dnft_payload.c60 static int nft_payload_init(const struct nft_ctx *ctx, argument
75 return nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
111 nft_payload_select_ops(const struct nft_ctx *ctx, argument
H A Dnft_queue.c63 static int nft_queue_init(const struct nft_ctx *ctx, argument
H A Dnft_byteorder.c76 static int nft_byteorder_init(const struct nft_ctx *ctx, argument
99 err = nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
H A Dnft_cmp.c71 static int nft_cmp_init(const struct nft_ctx *ctx, const struct nft_expr *expr, argument
115 static int nft_cmp_fast_init(const struct nft_ctx *ctx, argument
166 nft_cmp_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) argument
H A Dnft_ct.c218 static int nft_ct_get_init(const struct nft_ctx *ctx, argument
273 err = nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
277 err = nft_ct_l3proto_try_module_get(ctx->afi->family);
284 static int nft_ct_set_init(const struct nft_ctx *ctx, argument
306 err = nft_ct_l3proto_try_module_get(ctx->afi->family);
313 static void nft_ct_destroy(const struct nft_ctx *ctx, argument
316 nft_ct_l3proto_module_put(ctx->afi->family);
380 nft_ct_select_ops(const struct nft_ctx *ctx, argument
H A Dnft_hash.c122 static void nft_hash_walk(const struct nft_ctx *ctx, const struct nft_set *set, argument
142 iter->err = iter->fn(ctx, set, iter, &elem);
H A Dnft_nat.c91 static int nft_nat_init(const struct nft_ctx *ctx, const struct nft_expr *expr, argument
98 err = nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT);
124 if (family != ctx->afi->family)
222 static int nft_nat_validate(const struct nft_ctx *ctx, argument
226 return nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT);
H A Dnft_rbtree.c184 static void nft_rbtree_walk(const struct nft_ctx *ctx, argument
205 iter->err = iter->fn(ctx, set, iter, &elem);
/net/bridge/netfilter/
H A Dnft_meta_bridge.c51 static int nft_meta_bridge_get_init(const struct nft_ctx *ctx, argument
64 return nft_meta_get_init(ctx, expr, tb);
72 err = nft_validate_data_load(ctx, priv->dreg, NULL, NFT_DATA_VALUE);
97 nft_meta_bridge_select_ops(const struct nft_ctx *ctx, argument
H A Dnft_reject_bridge.c328 static int nft_reject_bridge_init(const struct nft_ctx *ctx, argument
335 err = nft_reject_bridge_validate_hooks(ctx->chain);
386 static int nft_reject_bridge_validate(const struct nft_ctx *ctx, argument
390 return nft_reject_bridge_validate_hooks(ctx->chain);
/net/sunrpc/auth_gss/
H A Dgss_krb5_seal.c74 setup_token(struct krb5_ctx *ctx, struct xdr_netobj *token) argument
78 int body_size = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength;
80 token->len = g_token_size(&ctx->mech_used, body_size);
83 g_make_token_header(&ctx->mech_used, body_size, (unsigned char **)&ptr);
92 *ptr++ = (__force u16)cpu_to_le16(ctx->gk5e->signalg);
100 setup_token_v2(struct krb5_ctx *ctx, struct xdr_netobj *token) argument
106 if ((ctx->flags & KRB5_CTX_FLAG_INITIATOR) == 0)
108 if (ctx->flags & KRB5_CTX_FLAG_ACCEPTOR_SUBKEY)
123 token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength;
128 gss_get_mic_v1(struct krb5_ctx *ctx, struc argument
169 gss_get_mic_v2(struct krb5_ctx *ctx, struct xdr_buf *text, struct xdr_netobj *token) argument
215 struct krb5_ctx *ctx = gss_ctx->internal_ctx_id; local
[all...]
H A Dgss_krb5_unseal.c74 gss_verify_mic_v1(struct krb5_ctx *ctx, argument
91 if (g_verify_token_header(&ctx->mech_used, &bodysize, &ptr,
102 if (signalg != ctx->gk5e->signalg)
112 if (ctx->gk5e->keyed_cksum)
113 cksumkey = ctx->cksum;
117 if (make_checksum(ctx, ptr, 8, message_buffer, 0,
122 ctx->gk5e->cksumlength))
129 if (now > ctx->endtime)
134 if (krb5_get_seq_num(ctx, ptr + GSS_KRB5_TOK_HDR_LEN, ptr + 8,
138 if ((ctx
146 gss_verify_mic_v2(struct krb5_ctx *ctx, struct xdr_buf *message_buffer, struct xdr_netobj *read_token) argument
212 struct krb5_ctx *ctx = gss_ctx->internal_ctx_id; local
[all...]
/net/ipv4/
H A Dtcp_fastopen.c33 struct tcp_fastopen_context *ctx = local
35 crypto_free_cipher(ctx->tfm);
36 kfree(ctx);
42 struct tcp_fastopen_context *ctx, *octx; local
44 ctx = kmalloc(sizeof(*ctx), GFP_KERNEL);
45 if (!ctx)
47 ctx->tfm = crypto_alloc_cipher("aes", 0, 0);
49 if (IS_ERR(ctx->tfm)) {
50 err = PTR_ERR(ctx
78 struct tcp_fastopen_context *ctx; local
[all...]

Completed in 91 milliseconds

12