Home
last modified time | relevance | path

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

12

/external/netperf/src/missing/m4/
Dsalen.m417 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
20 AC_MSG_CHECKING(if sockaddr struct has sa_len member)
25 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
30 … AC_DEFINE([HAVE_SOCKADDR_SA_LEN],1,[Define if struct sockaddr has the sa_len member])
/external/netperf/m4/m4/
Dsalen.m417 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
20 AC_MSG_CHECKING(if sockaddr struct has sa_len member)
25 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
30 … AC_DEFINE([HAVE_SOCKADDR_SA_LEN],1,[Define if struct sockaddr has the sa_len member])
/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.c315 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || in create_ipv6_listener()
317 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) in create_ipv6_listener()
356 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || in create_wildcard_listeners()
370 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) in create_wildcard_listeners()
388 bind(tftpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) in create_wildcard_listeners()
454 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) in create_bound_listener()
473 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listener()
491 bind(new->tftpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listener()
639 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) in create_bound_listeners()
656 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.c274 int sa_len(union mysockaddr *addr) in sa_len() function
277 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/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;
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/avahi/avahi-autoipd/
Dmain.c462 socklen_t sa_len; in open_socket() local
482 sa_len = sizeof(sa); in open_socket()
483 if (getsockname(fd, (struct sockaddr*) &sa, &sa_len) < 0) { in open_socket()
529 socklen_t sa_len; in recv_packet() local
548 sa_len = sizeof(sa); in recv_packet()
549 if ((r = recvfrom(fd, (*packet)->ether_payload, s, 0, (struct sockaddr*) &sa, &sa_len)) < 0) { in recv_packet()
Diface-bsd.c353 sa_size = sa->sa_len; in next_sa()
/external/libpcap/
Dfad-getad.c106 #define SA_LEN(addr) ((addr)->sa_len)
Dfad-gifc.c93 #define SA_LEN(addr) ((addr)->sa_len)
Daclocal.m4738 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
749 [AC_MSG_CHECKING(if sockaddr struct has the sa_len member)
754 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
759 AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has the sa_len member])
/external/webrtc/webrtc/base/
Dmacifaddrs_converter.cc217 memcpy(&ifr.ifr_ifru.ifru_addr, sock_addr, sock_addr->sa_len); in GetIPAttributes()
/external/avahi/avahi-core/
Diface-pfroute.c114 #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
163 if (sa->sa_len == 0) in rtm_addr()
/external/tcpdump/missing/
Dgetnameinfo.c119 if (sa->sa_len != salen)
/external/ipsec-tools/src/libipsec/
Dlibpfkey.h213 return sa->sa_len; in sysdep_sa_len()
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.h297 size_t sa_len; member
/external/tcpdump/
Daclocal.m4730 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
741 [AC_MSG_CHECKING(if sockaddr struct has the sa_len member)
746 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
751 AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has the sa_len member])
1134 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
1137 AC_MSG_CHECKING(if sockaddr struct has sa_len member)
1142 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
/external/dhcpcd-6.8.2/
Dif-bsd.c92 #define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len))
566 l = RT_ROUNDUP(su.sa.sa_len); \ in if_route()
954 l = RT_ROUNDUP(su.sa.sa_len); \ in if_route6()
1291 rti_info[RTAX_IFA]->sa_len); in if_managelink()
/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.c542 sap->sa_len = sizeof(struct sockaddr); in wpa_driver_wired_multi()

12