Lines Matching defs:dst
374 bcopy((d), &(idx)->dst, ((struct sockaddr *)(d))->sa_len); \
388 bcopy((d), &(idx)->dst, ((struct sockaddr *)(d))->sa_len); \
676 idst->sa_len > sizeof(spidx.dst))
679 bcopy(idst, &spidx.dst, idst->sa_len);
684 id = (struct sockaddr *)&r1->saidx.dst;
691 od = (struct sockaddr *)&r2->saidx.dst;
761 * Remove dst port - used for special natt support - don't call
765 sin = (struct sockaddr_in *)&saidx->dst;
825 sin = (struct sockaddr_in *)&saidx->dst;
1033 key_allocsa(family, src, dst, proto, spi)
1035 caddr_t src, dst;
1048 if (src == NULL || dst == NULL)
1082 family != sav->sah->saidx.dst.ss_family)
1132 /* check dst address */
1138 bcopy(dst, &sin.sin_addr,
1141 (struct sockaddr *)&sav->sah->saidx.dst, 0) != 0)
1149 bcopy(dst, &sin6.sin6_addr,
1158 (struct sockaddr *)&sav->sah->saidx.dst, 0) != 0)
1201 bcopy(&outsav->sah->saidx.src, &saidx.dst, sizeof(struct sockaddr_in));
1202 bcopy(&outsav->sah->saidx.dst, &saidx.src, sizeof(struct sockaddr_in));
1766 > sizeof((*p_isr)->saidx.dst)) {
1773 bcopy(paddr, &(*p_isr)->saidx.dst,
1876 bcopy(&isr->saidx.dst, p, isr->saidx.dst.ss_len);
1882 + isr->saidx.dst.ss_len);
2128 if (newsp->req && newsp->req->saidx.dst.ss_family) {
2131 if (sa->sa_family != newsp->req->saidx.dst.ss_family) {
2133 || sa->sa_family != AF_INET6 || newsp->req->saidx.dst.ss_family != AF_INET) {
2755 (struct sockaddr *)&sp->spidx.dst, sp->spidx.prefd,
2812 + isr->saidx.dst.ss_len;
2891 (struct sockaddr *)&sp->spidx.dst,
2968 switch (saidx->dst.ss_family) {
2970 ((struct sockaddr_in *)(&newsah->saidx.dst))->sin_port = IPSEC_PORT_ANY;
2973 ((struct sockaddr_in6 *)(&newsah->saidx.dst))->sin6_port = IPSEC_PORT_ANY;
3262 if (saidx->src.ss_family != saidx->dst.ss_family) {
3276 key_ismyaddr((struct sockaddr *)&sav->sah->saidx.dst))
3887 (struct sockaddr *)&sav->sah->saidx.dst,
4371 bcmp(&saidx0->dst, &saidx1->dst, saidx0->dst.ss_len) != 0)
4395 if (key_sockaddrcmp((struct sockaddr *)&saidx0->dst,
4396 (struct sockaddr *)&saidx1->dst, flag & CMP_PORT ? 1 : 0) != 0) {
4433 if (key_sockaddrcmp((struct sockaddr *)&spidx0->dst,
4434 (struct sockaddr *)&spidx1->dst, 1) != 0) {
4462 spidx0->dst.ss_family != spidx1->dst.ss_family ||
4464 spidx0->dst.ss_len != spidx1->dst.ss_len)
4507 switch (spidx0->dst.ss_family) {
4509 if (satosin(&spidx0->dst)->sin_port != IPSEC_PORT_ANY
4510 && satosin(&spidx0->dst)->sin_port !=
4511 satosin(&spidx1->dst)->sin_port)
4513 if (!key_bbcmp((caddr_t)&satosin(&spidx0->dst)->sin_addr,
4514 (caddr_t)&satosin(&spidx1->dst)->sin_addr, spidx0->prefd))
4518 if (satosin6(&spidx0->dst)->sin6_port != IPSEC_PORT_ANY
4519 && satosin6(&spidx0->dst)->sin6_port !=
4520 satosin6(&spidx1->dst)->sin6_port)
4528 satosin6(&spidx0->dst)->sin6_scope_id !=
4529 satosin6(&spidx1->dst)->sin6_scope_id)
4531 if (!key_bbcmp((caddr_t)&satosin6(&spidx0->dst)->sin6_addr,
4532 (caddr_t)&satosin6(&spidx1->dst)->sin6_addr, spidx0->prefd))
4537 if (bcmp(&spidx0->dst, &spidx1->dst, spidx0->dst.ss_len) != 0)
5150 * <base, (SA2), src address, dst address, (SPI range)>
5779 newsah->saidx.dst.ss_family != AF_INET))
5985 * that match the src/dst. This is used during
6054 * delete all SAs for src/dst. Called from key_delete().
6497 * <base, src address, dst address, (SPI range)> with SADB_GETSPI
6582 (struct sockaddr *)&saidx->dst, FULLMASK, IPSEC_ULPROTO_ANY);
7233 (struct sockaddr *)&sav->sah->saidx.dst,
8083 __unused caddr_t dst)
8150 key_sa_routechange(dst)
8151 struct sockaddr *dst;
8159 if (ro->ro_rt && dst->sa_len == ro->ro_dst.sa_len
8160 && bcmp(dst, &ro->ro_dst, dst->sa_len) == 0) {