Lines Matching defs:saidx
1324 (*q)->saidx.proto = p->saidx.proto;
1325 (*q)->saidx.mode = p->saidx.mode;
1327 (*q)->saidx.reqid = p->saidx.reqid;
1329 bcopy(&p->saidx.src, &(*q)->saidx.src, sizeof((*q)->saidx.src));
1330 bcopy(&p->saidx.dst, &(*q)->saidx.dst, sizeof((*q)->saidx.dst));
1722 switch (isr->saidx.proto) {
1724 if (isr->saidx.mode == IPSEC_MODE_TUNNEL)
1730 if (isr->saidx.mode == IPSEC_MODE_TUNNEL)
1745 isr->saidx.proto);
1812 switch (isr->saidx.proto) {
2019 switch (isr->saidx.proto) {
2035 if (isr->saidx.mode == IPSEC_MODE_TUNNEL) {
2036 switch (((struct sockaddr *)&isr->saidx.dst)->sa_family) {
2048 ((struct sockaddr *)&isr->saidx.dst)->sa_family));
2155 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family
2156 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family
2157 || ((struct sockaddr *)&sav->sah->saidx.src)->sa_family != AF_INET) {
2163 if (key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst)) {
2251 bcopy(&((struct sockaddr_in *)&sav->sah->saidx.src)->sin_addr,
2253 bcopy(&((struct sockaddr_in *)&sav->sah->saidx.dst)->sin_addr,
2274 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family
2275 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family
2276 || ((struct sockaddr *)&sav->sah->saidx.src)->sa_family != AF_INET6) {
2282 if (key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst)) {
2331 bcopy(&((struct sockaddr_in6 *)&sav->sah->saidx.src)->sin6_addr,
2333 bcopy(&((struct sockaddr_in6 *)&sav->sah->saidx.dst)->sin6_addr,
2353 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family
2354 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family
2355 || ((struct sockaddr *)&sav->sah->saidx.src)->sa_family != AF_INET) {
2361 if (key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst)) {
2420 bcopy(&((struct sockaddr_in *)&sav->sah->saidx.src)->sin_addr,
2422 bcopy(&((struct sockaddr_in *)&sav->sah->saidx.dst)->sin_addr,
2702 struct secasindex *saidx = &sav->sah->saidx;
2705 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family
2706 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family)
2713 if (((struct sockaddr *)&saidx->src)->sa_family == AF_INET) {
2715 s = (u_int8_t *)&((struct sockaddr_in *)&saidx->src)->sin_addr;
2716 d = (u_int8_t *)&((struct sockaddr_in *)&saidx->dst)->sin_addr;
2722 else if (((struct sockaddr *)&saidx->src)->sa_family == AF_INET6) {
2725 ip6_sprintf(&((struct sockaddr_in6 *)&saidx->src)->sin6_addr));
2730 ip6_sprintf(&((struct sockaddr_in6 *)&saidx->dst)->sin6_addr));
2777 struct secasindex saidx;
2808 if (isr->saidx.mode == IPSEC_MODE_TRANSPORT
2815 bcopy(&isr->saidx, &saidx, sizeof(saidx));
2816 saidx.mode = isr->saidx.mode;
2817 saidx.reqid = isr->saidx.reqid;
2818 sin = (struct sockaddr_in *)&saidx.src;
2826 sin = (struct sockaddr_in *)&saidx.dst;
2837 isr->saidx.mode == IPSEC_MODE_TRANSPORT) {
2866 if ((error = key_checkrequest(isr, &saidx, &sav)) != 0) {
2908 if (isr->saidx.mode == IPSEC_MODE_TUNNEL) {
2913 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family != AF_INET) {
2966 switch (isr->saidx.proto) {
2995 isr->saidx.proto));
3039 struct secasindex saidx;
3066 if (isr->saidx.mode == IPSEC_MODE_TUNNEL) {
3073 bcopy(&isr->saidx, &saidx, sizeof(saidx));
3074 saidx.mode = isr->saidx.mode;
3075 saidx.reqid = isr->saidx.reqid;
3076 sin6 = (struct sockaddr_in6 *)&saidx.src;
3089 sin6 = (struct sockaddr_in6 *)&saidx.dst;
3103 if (key_checkrequest(isr, &saidx, &sav) == ENOENT) {
3150 switch (isr->saidx.proto) {
3167 "unknown ipsec protocol %d\n", isr->saidx.proto));
3217 struct secasindex saidx;
3243 if (isr->saidx.mode == IPSEC_MODE_TUNNEL)
3248 if (isr->saidx.mode == IPSEC_MODE_TUNNEL) {
3250 bcopy(&isr->saidx, &saidx, sizeof(saidx));
3255 bzero(&saidx, sizeof(saidx));
3256 saidx.proto = isr->saidx.proto;
3257 saidx.mode = isr->saidx.mode;
3258 saidx.reqid = isr->saidx.reqid;
3261 sin6 = (struct sockaddr_in6 *)&saidx.src;
3274 sin6 = (struct sockaddr_in6 *)&saidx.dst;
3289 if (key_checkrequest(isr, &saidx, &sav) == ENOENT) {
3324 if (isr->saidx.mode == IPSEC_MODE_TUNNEL) {
3335 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family == AF_INET6) {
3342 } else if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family == AF_INET) {
3393 switch (isr->saidx.proto) {
3423 isr->saidx.proto));
3485 switch (isr->saidx.proto) {
3502 "unknown ipsec protocol %d\n", isr->saidx.proto));
3649 if (sav->sah->saidx.mode == IPSEC_MODE_TRANSPORT)
3661 sin = (struct sockaddr_in *)&sav->sah->saidx.dst;
3753 if (sav->sah->saidx.mode == IPSEC_MODE_TRANSPORT)
3758 sin6 = (struct sockaddr_in6 *)&sav->sah->saidx.dst;
4111 ip->ip_src = ((struct sockaddr_in*)&sav->sah->saidx.src)->sin_addr;
4112 ip->ip_dst = ((struct sockaddr_in*)&sav->sah->saidx.dst)->sin_addr;