Lines Matching refs:xfrm_ctx
771 struct xfrm_sec_ctx *xfrm_ctx; in __pfkey_xfrm_state2msg() local
795 if ((xfrm_ctx = x->security)) { in __pfkey_xfrm_state2msg()
796 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
1027 if (xfrm_ctx) { in __pfkey_xfrm_state2msg()
1033 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in __pfkey_xfrm_state2msg()
1034 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in __pfkey_xfrm_state2msg()
1035 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in __pfkey_xfrm_state2msg()
1036 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in __pfkey_xfrm_state2msg()
1037 xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
2018 struct xfrm_sec_ctx *xfrm_ctx = xp->security; in pfkey_xfrm_policy2sec_ctx_size() local
2020 if (xfrm_ctx) { in pfkey_xfrm_policy2sec_ctx_size()
2022 len += xfrm_ctx->ctx_len; in pfkey_xfrm_policy2sec_ctx_size()
2071 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_xfrm_policy2msg() local
2195 if ((xfrm_ctx = xp->security)) { in pfkey_xfrm_policy2msg()
2201 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in pfkey_xfrm_policy2msg()
2202 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in pfkey_xfrm_policy2msg()
2203 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in pfkey_xfrm_policy2msg()
2204 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in pfkey_xfrm_policy2msg()
2205 xfrm_ctx->ctx_len); in pfkey_xfrm_policy2msg()
3162 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_send_acquire() local
3180 if ((xfrm_ctx = x->security)) { in pfkey_send_acquire()
3181 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in pfkey_send_acquire()
3248 if (xfrm_ctx) { in pfkey_send_acquire()
3254 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in pfkey_send_acquire()
3255 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in pfkey_send_acquire()
3256 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in pfkey_send_acquire()
3257 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in pfkey_send_acquire()
3258 xfrm_ctx->ctx_len); in pfkey_send_acquire()