Lines Matching refs:xfrm_ctx
775 struct xfrm_sec_ctx *xfrm_ctx; in __pfkey_xfrm_state2msg() local
799 if ((xfrm_ctx = x->security)) { in __pfkey_xfrm_state2msg()
800 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
1031 if (xfrm_ctx) { in __pfkey_xfrm_state2msg()
1037 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in __pfkey_xfrm_state2msg()
1038 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in __pfkey_xfrm_state2msg()
1039 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in __pfkey_xfrm_state2msg()
1040 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in __pfkey_xfrm_state2msg()
1041 xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
2009 struct xfrm_sec_ctx *xfrm_ctx = xp->security; in pfkey_xfrm_policy2sec_ctx_size() local
2011 if (xfrm_ctx) { in pfkey_xfrm_policy2sec_ctx_size()
2013 len += xfrm_ctx->ctx_len; in pfkey_xfrm_policy2sec_ctx_size()
2062 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_xfrm_policy2msg() local
2186 if ((xfrm_ctx = xp->security)) { in pfkey_xfrm_policy2msg()
2192 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in pfkey_xfrm_policy2msg()
2193 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in pfkey_xfrm_policy2msg()
2194 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in pfkey_xfrm_policy2msg()
2195 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in pfkey_xfrm_policy2msg()
2196 xfrm_ctx->ctx_len); in pfkey_xfrm_policy2msg()
3141 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_send_acquire() local
3158 if ((xfrm_ctx = x->security)) { in pfkey_send_acquire()
3159 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in pfkey_send_acquire()
3223 if (xfrm_ctx) { in pfkey_send_acquire()
3229 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in pfkey_send_acquire()
3230 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in pfkey_send_acquire()
3231 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in pfkey_send_acquire()
3232 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in pfkey_send_acquire()
3233 xfrm_ctx->ctx_len); in pfkey_send_acquire()