/external/ipsec-tools/src/racoon/ |
D | policy.h | 121 memcpy(&(idx)->src, (s), sysdep_sa_len((struct sockaddr *)(s))); \ 122 memcpy(&(idx)->dst, (d), sysdep_sa_len((struct sockaddr *)(d))); \ 133 memcpy(&(idx)->src, (s), sysdep_sa_len((struct sockaddr *)(s))); \ 134 memcpy(&(idx)->dst, (d), sysdep_sa_len((struct sockaddr *)(d))); \
|
D | grabmyaddr.c | 318 if (getnameinfo(p->addr, sysdep_sa_len(p->addr), h1, sizeof(h1), NULL, 0, 325 if (getnameinfo(q->addr, sysdep_sa_len(q->addr), h2, sizeof(h2), 409 if (getnameinfo(p->addr, sysdep_sa_len(p->addr), in grab_myaddrs() 492 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ in grab_myaddrs() 493 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) in grab_myaddrs() 534 if (getnameinfo(p->addr, sysdep_sa_len(p->addr), in grab_myaddrs() 910 if (sysdep_sa_len(my) == sysdep_sa_len(p->addr) 911 && memcmp(my, p->addr, sysdep_sa_len(my)) == 0) { 919 sysdep_sa_len(my) - sizeof(uint32_t)) == 0) {
|
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 | throttle.c | 80 + sysdep_sa_len(addr); 86 memcpy(&te->host, addr, sysdep_sa_len(addr));
|
D | evt.c | 106 memcpy(&evtdump->src, src, sysdep_sa_len(src)); 108 memcpy(&evtdump->dst, dst, sysdep_sa_len(dst));
|
D | sockmisc.c | 265 socklen_t len = sysdep_sa_len(remote); in getlocaladdr() 294 if (sendto(s, buf, len, 0, to, sysdep_sa_len(to)) == -1) { in sendfromto() 357 if (connect(s, remote, sysdep_sa_len(remote)) < 0) { 703 if (ss.ss_family == src->sa_family && memcmp(&ss, src, sysdep_sa_len(src)) == 0) { 754 if (bind(sendsock, (struct sockaddr *)src, sysdep_sa_len(src)) < 0) { 764 len = sendto(sendsock, buf, buflen, 0, dst, sysdep_sa_len(dst)); 884 dst = racoon_calloc(1, sysdep_sa_len(src)); 891 memcpy(dst, src, sysdep_sa_len(src)); 1065 memcpy(a, b, sysdep_sa_len(b));
|
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 | privsep.c | 1008 + sysdep_sa_len(raddr) 1021 msg->bufs.buflen[1] = sysdep_sa_len(raddr); 1242 + sysdep_sa_len(raddr) 1256 msg->bufs.buflen[2] = sysdep_sa_len(raddr);
|
D | racoonctl.c | 991 memcpy(&ci->src, src, sysdep_sa_len(src)); 992 memcpy(&ci->dst, dst, sysdep_sa_len(dst)); 1249 tlen -= sysdep_sa_len(addr); 1256 tlen -= sysdep_sa_len(addr);
|
D | pfkey.c | 2038 xisrlen += (sysdep_sa_len(iph2->src) 2039 + sysdep_sa_len(iph2->dst)); 2144 src_len = sysdep_sa_len(iph2->src); 2145 dst_len = sysdep_sa_len(iph2->dst); 3029 sysdep_sa_len(paddr)); 3032 + sysdep_sa_len(paddr)); 3034 sysdep_sa_len(paddr));
|
D | isakmp.c | 1693 if (bind(p->sock, p->addr, sysdep_sa_len(p->addr)) < 0) { in isakmp_open() 2810 if (getnameinfo(from, sysdep_sa_len(from), hostbuf, sizeof(hostbuf), 2821 if (getnameinfo(my, sysdep_sa_len(my), hostbuf, sizeof(hostbuf), 3434 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src)); 3506 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
|
D | handler.c | 242 memcpy(&pd->remote, iph1->remote, sysdep_sa_len(iph1->remote)); in dumpph1() 243 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 | 1987 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src)); 2054 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
|
D | ipsec_doi.c | 3990 new = vmalloc(sysdep_sa_len(sa));
|
/external/ipsec-tools/src/libipsec/ |
D | ipsec_dump_policy.c | 326 sa2 = (void *)(p + sysdep_sa_len(sa1)); 327 if (sizeof(*xisr) + sysdep_sa_len(sa1) + sysdep_sa_len(sa2) != 406 if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), host, sizeof(host),
|
D | key_debug.c | 479 + sysdep_sa_len(addr)); 623 sysdep_sa_len((struct sockaddr *)&spidx->src)); 626 sysdep_sa_len((struct sockaddr *)&spidx->dst)); 644 sysdep_sa_len((struct sockaddr *)&saidx->src)); 647 sysdep_sa_len((struct sockaddr *)&saidx->dst)); 793 printf("sockaddr{ len=%u family=%u", sysdep_sa_len(addr), addr->sa_family);
|
D | pfkey.c | 417 + PFKEY_ALIGN8(sysdep_sa_len(src)) in pfkey_send_getspi() 419 + PFKEY_ALIGN8(sysdep_sa_len(dst)); in pfkey_send_getspi() 596 + PFKEY_ALIGN8(sysdep_sa_len(src)) in pfkey_send_delete_all() 598 + PFKEY_ALIGN8(sysdep_sa_len(dst)); in pfkey_send_delete_all() 1110 + PFKEY_ALIGN8(sysdep_sa_len(src)) in pfkey_send_migrate() 1112 + PFKEY_ALIGN8(sysdep_sa_len(dst)) in pfkey_send_migrate() 1232 + PFKEY_ALIGN8(sysdep_sa_len(sa_parms->src)) in pfkey_send_x1() 1234 + PFKEY_ALIGN8(sysdep_sa_len(sa_parms->dst)) in pfkey_send_x1() 1269 PFKEY_ALIGN8(sysdep_sa_len(sa_parms->l_natt_oa)); in pfkey_send_x1() 1387 (u_int)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 | 200 sysdep_sa_len (const struct sockaddr *sa) in sysdep_sa_len() function
|
/external/ipsec-tools/ |
D | setup.c | 262 int size = sysdep_sa_len(local); in spdadd() 295 int size = sysdep_sa_len(local); in spdadd()
|
D | ChangeLog | 679 * src/libipsec/pfkey.c: use sysdep_sa_len to make it compile on
|