Home
last modified time | relevance | path

Searched refs:sa_len (Results 1 – 25 of 37) 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.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()
577 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) in create_bound_listeners()
594 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()
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/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/libppp/src/
Darp.c84 addr.sa_len = sizeof(addr);
187 arpreq.arp_ha.sa_len = sizeof(struct sockaddr); in arp_SetProxy()
Droute.c97 (int)phost->sa_family, (int)phost->sa_len); in p_sockaddr()
325 wp += ROUNDUP(sa[rtax]->sa_len); in route_ParseHdr()
902 p += memcpy_roundup(p, dst, dst->sa_len); in rt_Update()
906 p += memcpy_roundup(p, gw, gw->sa_len); in rt_Update()
909 p += memcpy_roundup(p, mask, mask->sa_len); in rt_Update()
Dserver.c106 else if (sa->sa_len == 0) { in server_Read()
/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_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/e2fsprogs/lib/uuid/
Dgen_uuid.c244 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wired.c495 sap->sa_len = sizeof(struct sockaddr); in wpa_driver_wired_multi()
/external/ipsec-tools/
Dsetup.c223 .ss_len = src->sa_len, in spdadd()

12