Lines Matching defs:dst
1672 struct sockaddr *dst = iph2->dst;
1675 iph2->src = dst;
1676 iph2->dst = src;
1702 iph2->dst = dst;
1705 spidx->src = spidx->dst;
1706 spidx->dst = addr;
1836 switch (iph2->dst->sa_family) {
1845 "invalid family: %d\n", iph2->dst->sa_family);
1848 iddst = ipsecdoi_sockaddr2id(iph2->dst, prefixlen,
1861 conf = getrmconf(iph2->dst);
1899 * Copy both IP addresses in ID payloads into [src,dst]_id if both ID types
1914 int idi2type = 0; /* switch whether copy IDs into id[src,dst]. */
1925 /* make sure if id[src,dst] is null. */
1928 "Why do ID[src,dst] exist already.\n");
1951 (struct sockaddr *)&spidx.dst,
1964 error = setscopeid((struct sockaddr *)&spidx.dst,
1988 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
1989 switch (spidx.dst.ss_family) {
2024 iph2->dst);
2030 /* make id[src,dst] if both ID types are IP address and same */
2032 && spidx.dst.ss_family == spidx.src.ss_family) {
2033 iph2->src_id = dupsaddr((struct sockaddr *)&spidx.dst);
2055 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
2079 "get dst address from ID payload "
2081 saddr2str((struct sockaddr *)&spidx.dst),
2147 spidx.src = spidx.dst;
2148 spidx.dst = addr;