Home
last modified time | relevance | path

Searched refs:sa_len (Results 1 – 25 of 39) sorted by relevance

12

/external/mdnsresponder/mDNSPosix/
DmDNSUNP.h56 #define GET_SA_LEN(X) (sizeof(struct sockaddr) > ((struct sockaddr*)&(X))->sa_len ? \
57 sizeof(struct sockaddr) : ((struct sockaddr*)&(X))->sa_len )
/external/dnsmasq/src/
Dnetwork.c264 bind(tcpfd, (struct sockaddr*) &addr, sa_len(&addr)) == -1 || listen(tcpfd, 5) == -1 || in create_ipv6_listener()
265 bind(fd, (struct sockaddr*) &addr, sa_len(&addr)) == -1) in create_ipv6_listener()
297 bind(tcpfd, (struct sockaddr*) &addr, sa_len(&addr)) == -1 || listen(tcpfd, 5) == -1 || in create_wildcard_listeners()
309 bind(fd, (struct sockaddr*) &addr, sa_len(&addr)) == -1) in create_wildcard_listeners()
382 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) break; in create_bound_listener()
400 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) { in create_bound_listener()
540 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) break; in create_bound_listeners()
555 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) { in create_bound_listeners()
600 if (bind(fd, (struct sockaddr*) &addr, sa_len(&addr)) == 0) return fd; in random_sock()
623 if (bind(fd, (struct sockaddr*) &addr_copy, sa_len(&addr_copy)) == -1) return 0; in local_bind()
Dnetlink.c268 sa_len(&daemon->srv_save->addr)) == -1 && in nl_routechange()
Dforward.c51 msg.msg_namelen = sa_len(to); in send_from()
293 if (sendto(fd, (char*) header, plen, 0, &start->addr.sa, sa_len(&start->addr)) == in forward_query()
717 sa_len(&last_server->addr)) == -1)) { in tcp_request()
Dutil.c243 int sa_len(union mysockaddr* addr) { in sa_len() function
Ddnsmasq.h691 int sa_len(union mysockaddr* addr);
/external/ipsec-tools/src/racoon/
Dsockmisc.c102 if (addr1->sa_len != addr2->sa_len
156 if (addr1->sa_len != addr2->sa_len
221 if (addr1->sa_len != addr2->sa_len
870 new->sa_len = len;
Dipsec_doi.c4284 saddr->sa_len = sizeof(struct sockaddr_in);
4298 saddr->sa_len = sizeof(struct sockaddr_in6);
4417 saddr->sa_len = sizeof(struct sockaddr_in);
4431 saddr->sa_len = sizeof(struct sockaddr_in6);
4516 saddr->sa_len = sizeof(struct sockaddr_in);
4534 saddr->sa_len = sizeof(struct sockaddr_in6);
/external/libpcap/
Dfad-getad.c106 #define SA_LEN(addr) ((addr)->sa_len)
Dfad-gifc.c99 #define SA_LEN(addr) ((addr)->sa_len)
Dcmakeconfig.h.in213 /* Define to 1 if `sa_len' is a member of `struct sockaddr'. */
Dconfig.h.in219 /* Define to 1 if `sa_len' is a member of `struct sockaddr'. */
/external/libcups/cups/
Dgetifaddrs.c81 # define sockaddr_len(a) ((a)->sa_len) in _cups_getifaddrs()
/external/webrtc/webrtc/base/
Dmacifaddrs_converter.cc217 memcpy(&ifr.ifr_ifru.ifru_addr, sock_addr, sock_addr->sa_len); in GetIPAttributes()
/external/python/cpython2/Modules/
Dgetnameinfo.c116 len = sa->sa_len;
Dgetaddrinfo.c176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\
/external/python/cpython3/Modules/
Dgetnameinfo.c116 len = sa->sa_len;
Dgetaddrinfo.c176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.h297 size_t sa_len; member
Dikev2_common.c286 payloads->sa_len = pdatalen; in ikev2_parse_payloads()
/external/ipsec-tools/src/libipsec/
Dlibpfkey.h213 return sa->sa_len; in sysdep_sa_len()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wired_common.c123 sap->sa_len = sizeof(struct sockaddr); in driver_wired_multi()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c249 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id()
/external/ipsec-tools/
Dsetup.c238 .ss_len = src->sa_len, in spdadd()
/external/tcpdump/
Daclocal.m4771 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
782 [AC_MSG_CHECKING(if sockaddr struct has the sa_len member)
787 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
792 AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has the sa_len member])

12