/external/ipsec-tools/src/racoon/ |
D | policy.h | 127 memcpy(&(idx)->src, (s), sysdep_sa_len((struct sockaddr *)(s))); \ 128 memcpy(&(idx)->dst, (d), sysdep_sa_len((struct sockaddr *)(d))); \ 139 memcpy(&(idx)->src, (s), sysdep_sa_len((struct sockaddr *)(s))); \ 140 memcpy(&(idx)->dst, (d), sysdep_sa_len((struct sockaddr *)(d))); \
|
D | evt.c | 160 memcpy(&evtdump->src, src, sysdep_sa_len(src)); 162 memcpy(&evtdump->dst, dst, sysdep_sa_len(dst)); 317 memcpy(&e->evt.ec_ph1src, ph1->local, sysdep_sa_len(ph1->local)); 319 memcpy(&e->evt.ec_ph1dst, ph1->remote, sysdep_sa_len(ph1->remote)); 342 memcpy(&e->evt.ec_ph1src, ph1->local, sysdep_sa_len(ph1->local)); 344 memcpy(&e->evt.ec_ph1dst, ph1->remote, sysdep_sa_len(ph1->remote));
|
D | var.h | 79 if (getnameinfo((x), sysdep_sa_len(x), (y), sizeof(y), (z), sizeof(z), \ 90 if (getnameinfo((x), sysdep_sa_len(x), (y), sizeof(y), NULL, 0, \
|
D | sockmisc.c | 104 sysdep_sa_len(addr1) != sysdep_sa_len(addr2)) 150 socklen_t len = sysdep_sa_len(remote); in getlocaladdr() 175 if (sendto(s, buf, len, 0, to, sysdep_sa_len(to)) == -1) { in sendfromto() 235 if (connect(s, remote, sysdep_sa_len(remote)) < 0) { 580 if (ss.ss_family == src->sa_family && memcmp(&ss, src, sysdep_sa_len(src)) == 0) { 628 sysdep_sa_len(src)) < 0) { 638 len = sendto(sendsock, buf, buflen, 0, dst, sysdep_sa_len(dst)); 758 dst = racoon_calloc(1, sysdep_sa_len(src)); 765 memcpy(dst, src, sysdep_sa_len(src)); 939 memcpy(a, b, sysdep_sa_len(b));
|
D | throttle.c | 67 + sysdep_sa_len(addr); 77 memcpy(&te->host, addr, sysdep_sa_len(addr));
|
D | backupsa.c | 122 i = getnameinfo(sa_args->src, sysdep_sa_len(sa_args->src), p, len, NULL, 0, NIFLAGS); 139 i = getnameinfo(sa_args->dst, sysdep_sa_len(sa_args->dst), p, len, NULL, 0, NIFLAGS);
|
D | grabmyaddr.c | 127 memcpy(&my->addr, addr, sysdep_sa_len(addr)); 222 if (sysdep_sa_len(addr) > sizeof(my->addr)) { 232 memcpy(&my->addr, addr, sysdep_sa_len(addr));
|
D | racoonctl.c | 921 memcpy(&ci->src, src, sysdep_sa_len(src)); 922 memcpy(&ci->dst, dst, sysdep_sa_len(dst)); 1179 tlen -= sysdep_sa_len(addr); 1186 tlen -= sysdep_sa_len(addr);
|
D | pfkey.c | 2109 xisrlen += (sysdep_sa_len(src) + 2110 sysdep_sa_len(dst)); 2215 src_len = sysdep_sa_len(src); 2216 dst_len = sysdep_sa_len(dst); 3197 odaddr = (struct sockaddr *)(((u_int8_t *)osaddr) + sysdep_sa_len(osaddr)); 3199 ndaddr = (struct sockaddr *)(((u_int8_t *)nsaddr) + sysdep_sa_len(nsaddr)); 3239 memcpy(&saidx->src, nsaddr, sysdep_sa_len(nsaddr)); 3240 memcpy(&saidx->dst, ndaddr, sysdep_sa_len(ndaddr)); 3876 sysdep_sa_len(paddr)); 3879 + sysdep_sa_len(paddr)); [all …]
|
D | privsep.c | 1383 + sysdep_sa_len(raddr) 1396 msg->bufs.buflen[1] = sysdep_sa_len(raddr); 1699 + sysdep_sa_len(raddr) 1713 msg->bufs.buflen[2] = sysdep_sa_len(raddr);
|
D | isakmp.c | 1713 if (privsep_bind(fd, addr, sysdep_sa_len(addr)) < 0) { in isakmp_open() 2855 if (getnameinfo(from, sysdep_sa_len(from), hostbuf, sizeof(hostbuf), 2866 if (getnameinfo(my, sysdep_sa_len(my), hostbuf, sizeof(hostbuf), 3489 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src)); 3561 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
|
D | handler.c | 337 memcpy(&pd->remote, iph1->remote, sysdep_sa_len(iph1->remote)); in dumpph1() 338 memcpy(&pd->local, iph1->local, sysdep_sa_len(iph1->local)); in dumpph1()
|
D | gssapi.c | 164 if (getnameinfo(sa, sysdep_sa_len(sa), name, NI_MAXHOST, NULL, 0, 0) != 0) in gssapi_get_default_name()
|
D | isakmp_quick.c | 2319 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src)); 2402 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
|
D | ipsec_doi.c | 3872 new = vmalloc(sysdep_sa_len(sa));
|
/external/ipsec-tools/src/libipsec/ |
D | key_debug.c | 488 + sysdep_sa_len(addr)); 591 if (len < sizeof(struct sockaddr) || (sa_len = sysdep_sa_len(sa)) > len) 599 if (len < sizeof(struct sockaddr) || sysdep_sa_len(sa) > len) 674 sysdep_sa_len((struct sockaddr *)&spidx->src)); 677 sysdep_sa_len((struct sockaddr *)&spidx->dst)); 695 sysdep_sa_len((struct sockaddr *)&saidx->src)); 698 sysdep_sa_len((struct sockaddr *)&saidx->dst)); 844 printf("sockaddr{ len=%u family=%u", sysdep_sa_len(addr), addr->sa_family);
|
D | ipsec_dump_policy.c | 331 sa2 = (void *)(p + sysdep_sa_len(sa1)); 332 if (sizeof(*xisr) + sysdep_sa_len(sa1) + sysdep_sa_len(sa2) != 411 if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), host, sizeof(host),
|
D | pfkey.c | 424 + PFKEY_ALIGN8(sysdep_sa_len(src)) in pfkey_send_getspi_nat() 426 + PFKEY_ALIGN8(sysdep_sa_len(dst)); in pfkey_send_getspi_nat() 645 + PFKEY_ALIGN8(sysdep_sa_len(src)) in pfkey_send_delete_all() 647 + PFKEY_ALIGN8(sysdep_sa_len(dst)); in pfkey_send_delete_all() 1171 + PFKEY_ALIGN8(2*sysdep_sa_len(local)) in pfkey_send_migrate() 1174 + PFKEY_ALIGN8(sysdep_sa_len(src)) in pfkey_send_migrate() 1176 + PFKEY_ALIGN8(sysdep_sa_len(dst)) in pfkey_send_migrate() 1303 + PFKEY_ALIGN8(sysdep_sa_len(sa_parms->src)) in pfkey_send_x1() 1305 + PFKEY_ALIGN8(sysdep_sa_len(sa_parms->dst)) in pfkey_send_x1() 1340 PFKEY_ALIGN8(sysdep_sa_len(sa_parms->l_natt_oa)); in pfkey_send_x1() [all …]
|
D | policy_parse.y | 521 + (src ? sysdep_sa_len(src) : 0) 522 + (dst ? sysdep_sa_len(dst) : 0); 558 memcpy(&pbuf[offset], addr, sysdep_sa_len(addr)); 560 offset += sysdep_sa_len(addr);
|
D | pfkey_dump.c | 539 if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), NULL, 560 if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), NULL, 665 if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), buf, sizeof(buf), 684 if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), NULL, 0,
|
D | libpfkey.h | 222 sysdep_sa_len (const struct sockaddr *sa) in sysdep_sa_len() function
|
/external/ipsec-tools/ |
D | setup.c | 242 int size = sysdep_sa_len(local); in spdadd() 275 int size = sysdep_sa_len(local); in spdadd()
|
D | ChangeLog | 1754 * src/libipsec/pfkey.c: use sysdep_sa_len to make it compile on
|