Home
last modified time | relevance | path

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

12

/external/dhcpcd/
Dif-bsd.c66 #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
201 l = ROUNDUP(_su.sa.sa_len); \ in if_route()
257 p = su.sa.sa_len + (char *)&su; in if_route()
258 for (su.sa.sa_len = 0; p > (char *)&su;) in if_route()
260 su.sa.sa_len = 1 + p - (char *)&su; in if_route()
403 rti_info[RTAX_IFA]->sa_len); in manage_link()
Dnet.c427 MIN(ifa->ifa_addr->sa_len, sizeof(iflr.addr))); in discover_interfaces()
/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.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()
430 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) in create_bound_listeners()
447 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listeners()
466 bind(new->tftpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) in create_bound_listeners()
522 if (bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == 0) in random_sock()
551 if (bind(fd, (struct sockaddr *)&addr_copy, sa_len(&addr_copy)) == -1) in local_bind()
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()
325 sa_len(&start->addr)) == -1) in forward_query()
819 connect(last_server->tcpfd, &last_server->addr.sa, sa_len(&last_server->addr)) == -1)) in tcp_request()
/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.c4270 saddr->sa_len = sizeof(struct sockaddr_in);
4284 saddr->sa_len = sizeof(struct sockaddr_in6);
4403 saddr->sa_len = sizeof(struct sockaddr_in);
4417 saddr->sa_len = sizeof(struct sockaddr_in6);
4502 saddr->sa_len = sizeof(struct sockaddr_in);
4520 saddr->sa_len = sizeof(struct sockaddr_in6);
/external/libpcap/
Dfad-getad.c96 #define SA_LEN(addr) ((addr)->sa_len)
Dfad-gifc.c99 #define SA_LEN(addr) ((addr)->sa_len)
Dconfig.h.in77 /* if struct sockaddr has sa_len */
Daclocal.m4444 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
455 [AC_MSG_CHECKING(if sockaddr struct has sa_len member)
460 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
465 AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has sa_len])
/external/tcpdump/missing/
Dgetnameinfo.c124 if (sa->sa_len != salen)
/external/ipsec-tools/src/libipsec/
Dlibpfkey.h213 return sa->sa_len; in sysdep_sa_len()
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_wired.c138 sap->sa_len = sizeof(struct sockaddr); in wpa_driver_wired_multi()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Dikev2_common.h307 size_t sa_len; member
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.h301 size_t sa_len; member
/external/tcpdump/
Daclocal.m4526 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
537 [AC_MSG_CHECKING(if sockaddr struct has sa_len member)
542 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
935 dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member
938 AC_MSG_CHECKING(if sockaddr struct has sa_len member)
943 [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
Dprint-isakmp.c290 salen = sa->sa_len; in cookie_sidecheck()
307 salen = sa->sa_len; in cookie_sidecheck()
/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/wpa_supplicant_8/src/drivers/
Ddriver_wired.c501 sap->sa_len = sizeof(struct sockaddr); in wpa_driver_wired_multi()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c244 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id()
/external/ipsec-tools/
Dsetup.c223 .ss_len = src->sa_len, in spdadd()

12