Home
last modified time | relevance | path

Searched refs:xfrm_ctx (Results 1 – 2 of 2) sorted by relevance

/net/key/
Daf_key.c771 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()
2019 struct xfrm_sec_ctx *xfrm_ctx = xp->security; in pfkey_xfrm_policy2sec_ctx_size() local
[all …]
/net/xfrm/
Dxfrm_user.c575 static inline unsigned int xfrm_user_sec_ctx_size(struct xfrm_sec_ctx *xfrm_ctx) in xfrm_user_sec_ctx_size() argument
579 if (xfrm_ctx) { in xfrm_user_sec_ctx_size()
581 len += xfrm_ctx->ctx_len; in xfrm_user_sec_ctx_size()