/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.h | 56 #define GET_SA_LEN(X) (sizeof(struct sockaddr) > ((struct sockaddr*)&(X))->sa_len ? \ 57 sizeof(struct sockaddr) : ((struct sockaddr*)&(X))->sa_len )
|
/external/chromium_org/third_party/usrsctp/usrsctplib/ |
D | user_socket.c | 685 sa->sa_len = len; 736 to->sa_len = tolen; in userspace_sctp_sendmsg() 905 to->sa_len = tolen; in userspace_sctp_sendmbuf() 1759 if (*namelen > sa->sa_len) { in user_accept() 1760 *namelen = sa->sa_len; in user_accept() 1763 socklen_t sa_len; in user_accept() 1768 sa_len = sizeof(struct sockaddr_in); in user_accept() 1773 sa_len = sizeof(struct sockaddr_in6); in user_accept() 1777 sa_len = sizeof(struct sockaddr_conn); in user_accept() 1780 sa_len = 0; in user_accept() [all …]
|
/external/dnsmasq/src/ |
D | network.c | 302 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || in create_ipv6_listener() 304 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) in create_ipv6_listener() 342 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || in create_wildcard_listeners() 356 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) in create_wildcard_listeners() 374 bind(tftpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) in create_wildcard_listeners() 439 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) in create_bound_listener() 456 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listener() 474 bind(new->tftpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listener() 602 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) in create_bound_listeners() 619 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listeners() [all …]
|
D | bpf.c | 76 if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_ifru)) in iface_enumerate() 77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru); in iface_enumerate()
|
D | util.c | 270 int sa_len(union mysockaddr *addr) in sa_len() function 273 return addr->sa.sa_len; in sa_len()
|
D | netlink.c | 296 &daemon->srv_save->addr.sa, sa_len(&daemon->srv_save->addr)) == -1 && retry_send()); in nl_routechange()
|
D | forward.c | 54 msg.msg_namelen = sa_len(to); in send_from() 337 sa_len(&start->addr)) == -1) in forward_query() 832 connect(last_server->tcpfd, &last_server->addr.sa, sa_len(&last_server->addr)) == -1)) in tcp_request()
|
/external/libpcap/Win32/Include/net/ |
D | if.h | 182 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ 184 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
|
/external/chromium_org/net/dns/ |
D | address_sorter_posix.cc | 355 if (!src.FromSockAddr(ifa->ifa_addr, ifa->ifa_addr->sa_len)) in OnIPAddressChanged() 363 DCHECK_LE(ifa->ifa_addr->sa_len, sizeof(ifr.ifr_ifru.ifru_addr)); in OnIPAddressChanged() 364 memcpy(&ifr.ifr_ifru.ifru_addr, ifa->ifa_addr, ifa->ifa_addr->sa_len); in OnIPAddressChanged() 374 if (netmask.FromSockAddr(ifa->ifa_netmask, ifa->ifa_addr->sa_len)) { in OnIPAddressChanged()
|
/external/lldb/source/Host/common/ |
D | SocketAddress.cpp | 96 return m_socket_addr.sa.sa_len; in GetLength() 119 m_socket_addr.sa.sa_len = GetFamilyLength (family); in SetFamily()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 98 if (addr1->sa_len != addr2->sa_len 152 if (addr1->sa_len != addr2->sa_len 217 if (addr1->sa_len != addr2->sa_len 855 new->sa_len = len;
|
/external/dhcpcd/ |
D | if-bsd.c | 67 #define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len)) 211 l = RT_ROUNDUP(_su.sa.sa_len); \ in if_route() 425 rti_info[RTAX_IFA]->sa_len); in manage_link()
|
/external/lldb/tools/debugserver/source/ |
D | RNBSocket.cpp | 129 socklen_t sa_len = sizeof (sa); in Listen() local 130 if (getsockname(listen_fd, (struct sockaddr *)&sa, &sa_len) == 0) in Listen()
|
/external/libpcap/ |
D | fad-getad.c | 111 #define SA_LEN(addr) ((addr)->sa_len)
|
D | fad-gifc.c | 98 #define SA_LEN(addr) ((addr)->sa_len)
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/ |
D | sctp6_usrreq.c | 534 pktdst->sa_len != sizeof(struct sockaddr_in6)) 873 if (addr->sa_len != sizeof(struct sockaddr_in)) { 883 if (addr->sa_len != sizeof(struct sockaddr_in6)) { 1208 if (addr->sa_len != sizeof(struct sockaddr_in)) { 1218 if (addr->sa_len != sizeof(struct sockaddr_in6)) { 1616 *namelen = nam->sa_len; 1681 *namelen = nam->sa_len;
|
/external/tcpdump/missing/ |
D | getnameinfo.c | 124 if (sa->sa_len != salen)
|
/external/wpa_supplicant_8/src/eap_common/ |
D | ikev2_common.h | 297 size_t sa_len; member
|
/external/ipsec-tools/src/libipsec/ |
D | libpfkey.h | 213 return sa->sa_len; in sysdep_sa_len()
|
/external/chromium_org/net/base/ |
D | net_util_posix.cc | 232 interface->ifa_addr->sa_len); in GetNetworkList()
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_usrreq.c | 837 (addr->sa_len != sizeof(struct sockaddr_in))) { 897 (addr->sa_len != sizeof(struct sockaddr_conn))) { 1528 memcpy(ss, sa, sa->sa_len); 1810 uint32_t sa_len = 0; local 1843 laddr->ifa->address.sa.sa_len); 1844 actual += laddr->ifa->address.sa.sa_len; 1849 sa_len = sizeof(struct sockaddr_in); 1854 sa_len = sizeof(struct sockaddr_in6); 1859 sa_len = sizeof(struct sockaddr_conn); 1866 sas = (struct sockaddr_storage *)((caddr_t)sas + sa_len); [all …]
|
/external/tcpdump/ |
D | aclocal.m4 | 762 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member 773 [AC_MSG_CHECKING(if sockaddr struct has the sa_len member) 778 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)], 783 AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has the sa_len member]) 1169 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member 1172 AC_MSG_CHECKING(if sockaddr struct has sa_len member) 1177 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 166 (ifr->ifr_addr.sa_len > sizeof(struct sockaddr) in getHWaddr() 167 ? ifr->ifr_addr.sa_len in getHWaddr()
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 248 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_wired.c | 524 sap->sa_len = sizeof(struct sockaddr); in wpa_driver_wired_multi()
|