Searched refs:uctx (Results 1 – 2 of 2) sorted by relevance
474 struct xfrm_user_sec_ctx *uctx = NULL; in pfkey_sadb2xfrm_user_sec_ctx() local477 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx()479 if (!uctx) in pfkey_sadb2xfrm_user_sec_ctx()482 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()483 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()484 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi; in pfkey_sadb2xfrm_user_sec_ctx()485 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg; in pfkey_sadb2xfrm_user_sec_ctx()486 uctx->ctx_len = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()487 memcpy(uctx + 1, sec_ctx + 1, in pfkey_sadb2xfrm_user_sec_ctx()488 uctx->ctx_len); in pfkey_sadb2xfrm_user_sec_ctx()[all …]
106 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local111 uctx = nla_data(rt); in verify_sec_ctx_len()112 if (uctx->len > nla_len(rt) || in verify_sec_ctx_len()113 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) in verify_sec_ctx_len()810 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local812 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx()818 uctx = nla_data(attr); in copy_sec_ctx()819 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()820 uctx->len = ctx_size; in copy_sec_ctx()821 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()[all …]