Lines Matching refs:spidx
2252 "new acquire %s\n", spidx2str(&sp_out->spidx));
2258 idsrc = ipsecdoi_sockaddr2id((struct sockaddr *)&sp_out->spidx.src,
2259 sp_out->spidx.prefs, sp_out->spidx.ul_proto);
2263 spidx2str(&sp_out->spidx));
2266 iddst = ipsecdoi_sockaddr2id((struct sockaddr *)&sp_out->spidx.dst,
2267 sp_out->spidx.prefd, sp_out->spidx.ul_proto);
2271 spidx2str(&sp_out->spidx));
3405 struct policyindex spidx;
3427 memset(&spidx, 0, sizeof(spidx));
3428 iph2->spidx_gen = (caddr_t )&spidx;
3433 spidx.dir = IPSEC_DIR_INBOUND;
3434 spidx.ul_proto = 0;
3443 * make destination address in spidx from either ID payload
3444 * or phase 1 address into a address in spidx.
3453 (struct sockaddr *)&spidx.dst,
3454 &spidx.prefd, &spidx.ul_proto);
3467 setscopeid((struct sockaddr *)&spidx.dst,
3490 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
3491 switch (spidx.dst.ss_family) {
3493 spidx.prefd =
3498 spidx.prefd =
3503 spidx.prefd = 0;
3508 /* make source address in spidx */
3516 (struct sockaddr *)&spidx.src,
3517 &spidx.prefs, &spidx.ul_proto);
3528 setscopeid((struct sockaddr *)&spidx.src,
3537 && spidx.dst.ss_family == spidx.src.ss_family) {
3539 dupsaddr((struct sockaddr *)&spidx.dst);
3546 dupsaddr((struct sockaddr *)&spidx.src);
3562 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
3563 switch (spidx.src.ss_family) {
3565 spidx.prefs =
3570 spidx.prefs =
3575 spidx.prefs = 0;
3585 saddr2str((struct sockaddr *)&spidx.src),
3586 spidx.prefs, spidx.ul_proto);
3590 saddr2str((struct sockaddr *)&spidx.dst),
3591 spidx.prefd, spidx.ul_proto);
3597 if (spidx.ul_proto == 0)
3598 spidx.ul_proto = IPSEC_ULPROTO_ANY;
3609 p = getsp(&spidx);
3614 if(p->spidx.created != created)
3633 spidx.dir = IPSEC_DIR_FWD;
3647 spidx.dir = IPSEC_DIR_OUTBOUND;
3648 addr = spidx.src;
3649 spidx.src = spidx.dst;
3650 spidx.dst = addr;
3651 pref = spidx.prefs;
3652 spidx.prefs = spidx.prefd;
3653 spidx.prefd = pref;