• Home
  • Raw
  • Download

Lines Matching refs:ctx_len

124 		len =   sizeof (struct xfrmnl_user_sec_ctx) + src->sec_ctx->ctx_len;  in xfrm_sp_clone()
163 (a->sec_ctx->ctx_len != b->sec_ctx->ctx_len) || in xfrm_sp_compare()
398 sp->sec_ctx->ctx_alg, sp->sec_ctx->ctx_doi, sp->sec_ctx->ctx_len); in xfrm_sp_dump_line()
603 len = sizeof (struct xfrmnl_user_sec_ctx) + ctx->ctx_len; in xfrmnl_sp_parse()
833 len = (sizeof (struct xfrm_user_sec_ctx)) + tmpl->sec_ctx->ctx_len; in build_xfrm_sp_message()
998 len = (sizeof (struct xfrm_user_sec_ctx)) + tmpl->sec_ctx->ctx_len; in build_xfrm_sp_delete_message()
1224 … unsigned int* exttype, unsigned int* alg, unsigned int* doi, unsigned int* ctx_len, char* ctx_str) in xfrmnl_sp_get_sec_ctx() argument
1229 *len = sizeof (struct xfrmnl_user_sec_ctx) + sp->sec_ctx->ctx_len; in xfrmnl_sp_get_sec_ctx()
1236 if (ctx_len) in xfrmnl_sp_get_sec_ctx()
1237 *ctx_len = sp->sec_ctx->ctx_len; in xfrmnl_sp_get_sec_ctx()
1239 memcpy ((void *)ctx_str, (void *)sp->sec_ctx->ctx, sp->sec_ctx->ctx_len); in xfrmnl_sp_get_sec_ctx()
1259 …d)), unsigned int exttype, unsigned int alg, unsigned int doi, unsigned int ctx_len, char* ctx_str) in xfrmnl_sp_set_sec_ctx() argument
1264 if ((sp->sec_ctx = calloc (1, sizeof (struct xfrmnl_user_sec_ctx) + 1 + ctx_len)) == NULL) in xfrmnl_sp_set_sec_ctx()
1268 sp->sec_ctx->len = sizeof (struct xfrmnl_user_sec_ctx) + ctx_len; in xfrmnl_sp_set_sec_ctx()
1272 sp->sec_ctx->ctx_len = ctx_len; in xfrmnl_sp_set_sec_ctx()
1273 memcpy ((void *)sp->sec_ctx->ctx, (void *)ctx_str, ctx_len); in xfrmnl_sp_set_sec_ctx()
1274 sp->sec_ctx->ctx[ctx_len] = '\0'; in xfrmnl_sp_set_sec_ctx()