Lines Matching refs:dst
787 * protocol family, src, dst, next protocol
905 * configure security policy index (src/dst/proto/sport/dport)
1013 ((struct sockaddr_in *)&spidx->dst)->sin_port = IPSEC_PORT_ANY;
1037 ((struct sockaddr_in *)&spidx->dst)->sin_port =
1049 ((struct sockaddr_in *)&spidx->dst)->sin_port =
1092 sin = (struct sockaddr_in *)&spidx->dst;
1122 ((struct sockaddr_in6 *)&spidx->dst)->sin6_port = IPSEC_PORT_ANY;
1138 ((struct sockaddr_in6 *)&spidx->dst)->sin6_port = th.th_dport;
1148 ((struct sockaddr_in6 *)&spidx->dst)->sin6_port = uh.uh_dport;
1186 sin6 = (struct sockaddr_in6 *)&spidx->dst;
1303 struct secpolicy *dst;
1307 dst = key_newsp();
1308 if (dst == NULL)
1330 bcopy(&p->saidx.dst, &(*q)->saidx.dst, sizeof((*q)->saidx.dst));
1332 (*q)->sp = dst;
1337 dst->req = newchain;
1338 dst->state = src->state;
1339 dst->policy = src->policy;
1342 return dst;
1350 key_freesp(dst, KEY_SADB_UNLOCKED);
1679 != ((struct sockaddr *)&isr->sp->spidx.dst)->sa_family)
2036 switch (((struct sockaddr *)&isr->saidx.dst)->sa_family) {
2048 ((struct sockaddr *)&isr->saidx.dst)->sa_family));
2156 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family
2162 /* XXX if the dst is myself, perform nothing. */
2163 if (key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst)) {
2253 bcopy(&((struct sockaddr_in *)&sav->sah->saidx.dst)->sin_addr,
2275 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family
2281 /* XXX if the dst is myself, perform nothing. */
2282 if (key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst)) {
2333 bcopy(&((struct sockaddr_in6 *)&sav->sah->saidx.dst)->sin6_addr,
2354 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family
2360 /* XXX if the dst is myself, perform nothing. */
2361 if (key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst)) {
2422 bcopy(&((struct sockaddr_in *)&sav->sah->saidx.dst)->sin_addr,
2660 snprintf(p, sizeof(buf) - (p - buf), " dst=%u.%u.%u.%u",
2686 snprintf(p, sizeof(buf) - (p - buf), " dst=%s",
2706 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family)
2716 d = (u_int8_t *)&((struct sockaddr_in *)&saidx->dst)->sin_addr;
2718 "src=%d.%d.%d.%d dst=%d.%d.%d.%d",
2729 " dst=%s",
2730 ip6_sprintf(&((struct sockaddr_in6 *)&saidx->dst)->sin6_addr));
2791 if (!state->dst)
2792 panic("state->dst == NULL in ipsec4_output");
2826 sin = (struct sockaddr_in *)&saidx.dst;
2934 state->dst = (struct sockaddr *)&state->ro->ro_dst;
2935 dst4 = (struct sockaddr_in *)state->dst;
2954 /* adjust state->dst if tunnel endpoint is offlink */
2956 state->dst = (struct sockaddr *)state->ro->ro_rt->rt_gateway;
2957 dst4 = (struct sockaddr_in *)state->dst;
3089 sin6 = (struct sockaddr_in6 *)&saidx.dst;
3274 sin6 = (struct sockaddr_in6 *)&saidx.dst;
3449 state->dst = (struct sockaddr *)&state->ro->ro_dst;
3450 dst6 = (struct sockaddr_in6 *)state->dst;
3471 /* adjust state->dst if tunnel endpoint is offlink */
3473 state->dst = (struct sockaddr *)state->ro->ro_rt->rt_gateway;
3474 dst6 = (struct sockaddr_in6 *)state->dst;
3661 sin = (struct sockaddr_in *)&sav->sah->saidx.dst;
3758 sin6 = (struct sockaddr_in6 *)&sav->sah->saidx.dst;
4112 ip->ip_dst = ((struct sockaddr_in*)&sav->sah->saidx.dst)->sin_addr;