Home
last modified time | relevance | path

Searched refs:sysdep_sa_len (Results 1 – 22 of 22) sorted by relevance

/external/ipsec-tools/src/racoon/
Dpolicy.h121 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))); \
Dgrabmyaddr.c314 if (getnameinfo(p->addr, sysdep_sa_len(p->addr), h1, sizeof(h1), NULL, 0,
321 if (getnameinfo(q->addr, sysdep_sa_len(q->addr), h2, sizeof(h2),
405 if (getnameinfo(p->addr, sysdep_sa_len(p->addr), in grab_myaddrs()
479 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ in grab_myaddrs()
480 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) in grab_myaddrs()
521 if (getnameinfo(p->addr, sysdep_sa_len(p->addr), in grab_myaddrs()
889 if (sysdep_sa_len(my) == sysdep_sa_len(p->addr)
890 && memcmp(my, p->addr, sysdep_sa_len(my)) == 0) {
898 sysdep_sa_len(my) - sizeof(uint32_t)) == 0) {
Dvar.h79 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, \
Dthrottle.c80 + sysdep_sa_len(addr);
86 memcpy(&te->host, addr, sysdep_sa_len(addr));
Devt.c106 memcpy(&evtdump->src, src, sysdep_sa_len(src));
108 memcpy(&evtdump->dst, dst, sysdep_sa_len(dst));
Dsockmisc.c261 socklen_t len = sysdep_sa_len(remote); in getlocaladdr()
286 socklen_t tolen = sysdep_sa_len(to); in sendfromto()
346 if (connect(s, remote, sysdep_sa_len(remote)) < 0) {
692 if (ss.ss_family == src->sa_family && memcmp(&ss, src, sysdep_sa_len(src)) == 0) {
739 if (bind(sendsock, (struct sockaddr *)src, sysdep_sa_len(src)) < 0) {
749 len = sendto(sendsock, buf, buflen, 0, dst, sysdep_sa_len(dst));
869 dst = racoon_calloc(1, sysdep_sa_len(src));
876 memcpy(dst, src, sysdep_sa_len(src));
1050 memcpy(a, b, sysdep_sa_len(b));
Dbackupsa.c122 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);
Dprivsep.c1008 + 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);
Dracoonctl.c991 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);
Dpfkey.c2038 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));
Disakmp.c1688 if (bind(p->sock, p->addr, sysdep_sa_len(p->addr)) < 0) { in isakmp_open()
2805 if (getnameinfo(from, sysdep_sa_len(from), hostbuf, sizeof(hostbuf),
2816 if (getnameinfo(my, sysdep_sa_len(my), hostbuf, sizeof(hostbuf),
3424 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
3496 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
Dhandler.c242 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()
Dgssapi.c164 if (getnameinfo(sa, sysdep_sa_len(sa), name, NI_MAXHOST, NULL, 0, 0) != 0) in gssapi_get_default_name()
Disakmp_quick.c1987 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
2054 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
Dipsec_doi.c3986 new = vmalloc(sysdep_sa_len(sa));
/external/ipsec-tools/src/libipsec/
Dipsec_dump_policy.c326 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),
Dkey_debug.c479 + 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);
Dpolicy_parse.y521 + (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);
Dpfkey.c419 + PFKEY_ALIGN8(sysdep_sa_len(src))
421 + PFKEY_ALIGN8(sysdep_sa_len(dst));
605 + PFKEY_ALIGN8(sysdep_sa_len(src))
607 + PFKEY_ALIGN8(sysdep_sa_len(dst));
1171 + PFKEY_ALIGN8(sysdep_sa_len(src))
1173 + PFKEY_ALIGN8(sysdep_sa_len(dst))
1294 + PFKEY_ALIGN8(sysdep_sa_len(sa_parms->src))
1296 + PFKEY_ALIGN8(sysdep_sa_len(sa_parms->dst))
1331 PFKEY_ALIGN8(sysdep_sa_len(sa_parms->l_natt_oa));
1449 (u_int)PFKEY_ALIGN8(sysdep_sa_len(sa_parms->l_natt_oa)),
[all …]
Dpfkey_dump.c539 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,
Dlibpfkey.h200 sysdep_sa_len (const struct sockaddr *sa) in sysdep_sa_len() function
/external/ipsec-tools/
DChangeLog679 * src/libipsec/pfkey.c: use sysdep_sa_len to make it compile on