Home
last modified time | relevance | path

Searched refs:sa_len (Results 1 – 25 of 48) 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/chromium_org/third_party/usrsctp/usrsctplib/
Duser_socket.c685 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/
Dnetwork.c302 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 …]
Dbpf.c76 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()
Dutil.c270 int sa_len(union mysockaddr *addr) in sa_len() function
273 return addr->sa.sa_len; in sa_len()
Dnetlink.c296 &daemon->srv_save->addr.sa, sa_len(&daemon->srv_save->addr)) == -1 && retry_send()); in nl_routechange()
Dforward.c54 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/
Dif.h182 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \
184 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
/external/chromium_org/net/dns/
Daddress_sorter_posix.cc355 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/
DSocketAddress.cpp96 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/
Dsockmisc.c98 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/
Dif-bsd.c67 #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/
DRNBSocket.cpp129 socklen_t sa_len = sizeof (sa); in Listen() local
130 if (getsockname(listen_fd, (struct sockaddr *)&sa, &sa_len) == 0) in Listen()
/external/libpcap/
Dfad-getad.c111 #define SA_LEN(addr) ((addr)->sa_len)
Dfad-gifc.c98 #define SA_LEN(addr) ((addr)->sa_len)
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c534 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/
Dgetnameinfo.c124 if (sa->sa_len != salen)
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.h297 size_t sa_len; member
/external/ipsec-tools/src/libipsec/
Dlibpfkey.h213 return sa->sa_len; in sysdep_sa_len()
/external/chromium_org/net/base/
Dnet_util_posix.cc232 interface->ifa_addr->sa_len); in GetNetworkList()
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_usrreq.c837 (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/
Daclocal.m4762 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/
Dif.c166 (ifr->ifr_addr.sa_len > sizeof(struct sockaddr) in getHWaddr()
167 ? ifr->ifr_addr.sa_len in getHWaddr()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c248 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wired.c524 sap->sa_len = sizeof(struct sockaddr); in wpa_driver_wired_multi()

12