Lines Matching refs:spidx
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) {
3437 spidx.prefd =
3442 spidx.prefd =
3447 spidx.prefd = 0;
3460 (struct sockaddr *)&spidx.src,
3461 &spidx.prefs, &spidx.ul_proto);
3472 setscopeid((struct sockaddr *)&spidx.src,
3481 && spidx.dst.ss_family == spidx.src.ss_family) {
3483 dupsaddr((struct sockaddr *)&spidx.dst);
3490 dupsaddr((struct sockaddr *)&spidx.src);
3506 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
3507 switch (spidx.src.ss_family) {
3509 spidx.prefs =
3514 spidx.prefs =
3519 spidx.prefs = 0;
3529 saddr2str((struct sockaddr *)&spidx.src),
3530 spidx.prefs, spidx.ul_proto);
3534 saddr2str((struct sockaddr *)&spidx.dst),
3535 spidx.prefd, spidx.ul_proto);
3541 if (spidx.ul_proto == 0)
3542 spidx.ul_proto = IPSEC_ULPROTO_ANY;
3553 p = getsp(&spidx);
3558 if(p->spidx.created != created)
3577 spidx.dir = IPSEC_DIR_FWD;
3591 spidx.dir = IPSEC_DIR_OUTBOUND;
3592 addr = spidx.src;
3593 spidx.src = spidx.dst;
3594 spidx.dst = addr;
3595 pref = spidx.prefs;
3596 spidx.prefs = spidx.prefd;
3597 spidx.prefd = pref;