Home
last modified time | relevance | path

Searched refs:spidx (Results 1 – 8 of 8) sorted by relevance

/external/ipsec-tools/src/racoon/
Dpolicy.c69 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 …]
Dpfkey.c1649 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 …]
Disakmp_quick.c1667 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 …]
Dsecurity.c164 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);
Disakmp.c3339 struct policyindex spidx; local
3361 memset(&spidx, 0, sizeof(spidx));
3362 iph2->spidx_gen = (caddr_t )&spidx;
3367 spidx.dir = IPSEC_DIR_INBOUND;
3368 spidx.ul_proto = 0;
3387 (struct sockaddr *)&spidx.dst,
3388 &spidx.prefd, &spidx.ul_proto);
3401 setscopeid((struct sockaddr *)&spidx.dst,
3424 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
3425 switch (spidx.dst.ss_family) {
[all …]
Dpolicy.h78 struct policyindex spidx; /* selector */ member
Dipsec_doi.c4055 iph2->id = ipsecdoi_sockaddr2id((struct sockaddr *)&sp->spidx.src,
4056 sp->spidx.prefs, sp->spidx.ul_proto);
4060 spidx2str(&sp->spidx));
4067 iph2->id_p = ipsecdoi_sockaddr2id((struct sockaddr *)&sp->spidx.dst,
4068 sp->spidx.prefd, sp->spidx.ul_proto);
4072 spidx2str(&sp->spidx));
/external/ipsec-tools/src/libipsec/
Dkey_debug.c573 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));