Searched refs:spidx (Results 1 – 8 of 8) sorted by relevance
/external/ipsec-tools/src/racoon/ |
D | policy.c | 69 getsp(spidx) in getsp() argument 70 struct policyindex *spidx; in getsp() 75 if (!cmpspidxstrict(spidx, &p->spidx)) 90 getsp_r(spidx) in getsp_r() argument 91 struct policyindex *spidx; in getsp_r() 96 if (!cmpspidxwild(spidx, &p->spidx)) 104 getsp_r(spidx, iph2) in getsp_r() argument 105 struct policyindex *spidx; in getsp_r() 113 if (spidx->src.ss_family != spidx->dst.ss_family) { 116 spidx->src.ss_family, [all …]
|
D | pfkey.c | 1649 struct policyindex spidx; local 1769 "suitable outbound SP found: %s.\n", spidx2str(&sp_out->spidx)); 1774 memset(&spidx, 0, sizeof(spidx)); 1775 spidx.dir = IPSEC_DIR_INBOUND; 1776 memcpy(&spidx.src, &sp_out->spidx.dst, sizeof(spidx.src)); 1777 memcpy(&spidx.dst, &sp_out->spidx.src, sizeof(spidx.dst)); 1778 spidx.prefs = sp_out->spidx.prefd; 1779 spidx.prefd = sp_out->spidx.prefs; 1780 spidx.ul_proto = sp_out->spidx.ul_proto; 1784 spidx.sec_ctx.ctx_doi = m_sec_ctx->sadb_x_ctx_doi; [all …]
|
D | isakmp_quick.c | 1667 struct policyindex *spidx; local 1684 spidx = (struct policyindex *)iph2->spidx_gen; 1688 spidx->dir = IPSEC_DIR_FWD; 1702 spidx->dir = IPSEC_DIR_OUTBOUND; 1703 addr = spidx->src; 1704 spidx->src = spidx->dst; 1705 spidx->dst = addr; 1706 pref = spidx->prefs; 1707 spidx->prefs = spidx->prefd; 1708 spidx->prefd = pref; [all …]
|
D | security.c | 164 set_secctx_in_proposal(iph2, spidx) in set_secctx_in_proposal() argument 166 struct policyindex spidx; 168 iph2->proposal->sctx.ctx_doi = spidx.sec_ctx.ctx_doi; 169 iph2->proposal->sctx.ctx_alg = spidx.sec_ctx.ctx_alg; 170 iph2->proposal->sctx.ctx_strlen = spidx.sec_ctx.ctx_strlen; 171 memcpy(iph2->proposal->sctx.ctx_str, spidx.sec_ctx.ctx_str, 172 spidx.sec_ctx.ctx_strlen);
|
D | isakmp.c | 3349 struct policyindex spidx; local 3371 memset(&spidx, 0, sizeof(spidx)); 3372 iph2->spidx_gen = (caddr_t )&spidx; 3377 spidx.dir = IPSEC_DIR_INBOUND; 3378 spidx.ul_proto = 0; 3397 (struct sockaddr *)&spidx.dst, 3398 &spidx.prefd, &spidx.ul_proto); 3411 setscopeid((struct sockaddr *)&spidx.dst, 3434 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src)); 3435 switch (spidx.dst.ss_family) { [all …]
|
D | policy.h | 78 struct policyindex spidx; /* selector */ member
|
D | ipsec_doi.c | 4069 iph2->id = ipsecdoi_sockaddr2id((struct sockaddr *)&sp->spidx.src, 4070 sp->spidx.prefs, sp->spidx.ul_proto); 4074 spidx2str(&sp->spidx)); 4081 iph2->id_p = ipsecdoi_sockaddr2id((struct sockaddr *)&sp->spidx.dst, 4082 sp->spidx.prefd, sp->spidx.ul_proto); 4086 spidx2str(&sp->spidx));
|
/external/ipsec-tools/src/libipsec/ |
D | key_debug.c | 573 kdebug_secpolicyindex(&sp->spidx); 612 kdebug_secpolicyindex(spidx) in kdebug_secpolicyindex() argument 613 struct secpolicyindex *spidx; in kdebug_secpolicyindex() 616 if (spidx == NULL) 620 spidx->dir, spidx->prefs, spidx->prefd, spidx->ul_proto); 622 ipsec_hexdump((caddr_t)&spidx->src, 623 sysdep_sa_len((struct sockaddr *)&spidx->src)); 625 ipsec_hexdump((caddr_t)&spidx->dst, 626 sysdep_sa_len((struct sockaddr *)&spidx->dst));
|