Home
last modified time | relevance | path

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

/external/ipsec-tools/src/racoon/
Dpolicy.h127 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))); \
Devt.c160 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));
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, \
Dsockmisc.c104 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));
Dthrottle.c67 + sysdep_sa_len(addr);
77 memcpy(&te->host, addr, sysdep_sa_len(addr));
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);
Dgrabmyaddr.c127 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));
Dracoonctl.c921 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);
Dpfkey.c2109 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 …]
Dprivsep.c1383 + 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);
Disakmp.c1713 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));
Dhandler.c337 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()
Dgssapi.c164 if (getnameinfo(sa, sysdep_sa_len(sa), name, NI_MAXHOST, NULL, 0, 0) != 0) in gssapi_get_default_name()
Disakmp_quick.c2319 memcpy(&spidx.dst, iph2->src, sysdep_sa_len(iph2->src));
2402 memcpy(&spidx.src, iph2->dst, sysdep_sa_len(iph2->dst));
Dipsec_doi.c3872 new = vmalloc(sysdep_sa_len(sa));
/external/ipsec-tools/src/libipsec/
Dkey_debug.c488 + 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);
Dipsec_dump_policy.c331 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),
Dpfkey.c424 + 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 …]
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_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.h222 sysdep_sa_len (const struct sockaddr *sa) in sysdep_sa_len() function
/external/ipsec-tools/
Dsetup.c242 int size = sysdep_sa_len(local); in spdadd()
275 int size = sysdep_sa_len(local); in spdadd()
DChangeLog1754 * src/libipsec/pfkey.c: use sysdep_sa_len to make it compile on