• Home
  • Raw
  • Download

Lines Matching refs:spidx

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;
1911 struct policyindex spidx; local
1931 memset(&spidx, 0, sizeof(spidx));
1936 spidx.dir = IPSEC_DIR_INBOUND;
1937 spidx.ul_proto = 0;
1950 (struct sockaddr *)&spidx.dst,
1951 &spidx.prefd, &spidx.ul_proto);
1963 error = setscopeid((struct sockaddr *)&spidx.dst,
1987 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
1988 switch (spidx.dst.ss_family) {
1990 spidx.prefd = sizeof(struct in_addr) << 3;
1994 spidx.prefd = sizeof(struct in6_addr) << 3;
1998 spidx.prefd = 0;
2011 (struct sockaddr *)&spidx.src,
2012 &spidx.prefs, &spidx.ul_proto);
2022 error = setscopeid((struct sockaddr *)&spidx.src,
2031 && spidx.dst.ss_family == spidx.src.ss_family) {
2032 iph2->src_id = dupsaddr((struct sockaddr *)&spidx.dst);
2038 iph2->dst_id = dupsaddr((struct sockaddr *)&spidx.src);
2054 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
2055 switch (spidx.src.ss_family) {
2057 spidx.prefs = sizeof(struct in_addr) << 3;
2061 spidx.prefs = sizeof(struct in6_addr) << 3;
2065 spidx.prefs = 0;
2075 saddr2str((struct sockaddr *)&spidx.src),
2076 spidx.prefs, spidx.ul_proto);
2080 saddr2str((struct sockaddr *)&spidx.dst),
2081 spidx.prefd, spidx.ul_proto);
2087 if (spidx.ul_proto == 0)
2088 spidx.ul_proto = IPSEC_ULPROTO_ANY;
2096 if (get_security_context(iph2->sa, &spidx)) {
2104 sp_in = getsp_r(&spidx);
2110 spidx2str(&spidx));
2111 iph2->spidx_gen = racoon_malloc(sizeof(spidx));
2117 memcpy(iph2->spidx_gen, &spidx, sizeof(spidx));
2121 "no policy found: %s\n", spidx2str(&spidx));
2129 spidx2str(&spidx));
2130 iph2->spidx_gen = racoon_malloc(sizeof(spidx));
2136 memcpy(iph2->spidx_gen, &spidx, sizeof(spidx));
2144 spidx.dir = IPSEC_DIR_OUTBOUND;
2145 addr = spidx.src;
2146 spidx.src = spidx.dst;
2147 spidx.dst = addr;
2148 pref = spidx.prefs;
2149 spidx.prefs = spidx.prefd;
2150 spidx.prefd = pref;
2152 sp_out = getsp_r(&spidx);
2156 spidx2str(&spidx));
2161 "suitable SP found:%s\n", spidx2str(&spidx));
2170 spidx2str(&spidx));
2182 if (spidx.sec_ctx.ctx_str) {
2183 set_secctx_in_proposal(iph2, spidx);