Searched refs:ai_addr (Results 1 - 25 of 233) sorted by relevance

12345678910

/freebsd-head/contrib/ntp/libntp/
H A Dntp_rfc2553.c208 memcpy(psau, ai_src->ai_addr, ai_src->ai_addrlen);
209 ai_cpy->ai_addr = &psau->sa;
409 ((struct sockaddr_in *)ai->ai_addr)->sin_port = (unsigned short) port;
411 ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port = (unsigned short) port;
424 if (ai->ai_addr != NULL)
426 free(ai->ai_addr);
427 ai->ai_addr = NULL;
474 ai->ai_addr = calloc(sizeof(struct sockaddr_storage), 1);
475 if (ai->ai_addr == NULL)
487 sockin = (struct sockaddr_in *)ai->ai_addr;
[all...]
H A Ddecodenetnum.c80 memcpy(netnum, ai->ai_addr, ai->ai_addrlen);
H A Dis_ip_address.c77 resaddr6 = UA_PTR(struct sockaddr_in6, result->ai_addr);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dfreeaddrinfo.c49 free (ai->ai_addr);
H A Dgetnameinfo_verified.c81 if (sasize == socket_addr_size(a->ai_addr) &&
82 memcmp(saaddr, socket_get_address(a->ai_addr), sasize) == 0) {
H A Dgetaddrinfo-test.c92 socket_get_address (r->ai_addr),
103 ntohs(socket_get_port (r->ai_addr)));
H A Dgetaddrinfo.c140 a->ai_addr = malloc (sizeof(*sin4));
141 if (a->ai_addr == NULL)
143 sin4 = (struct sockaddr_in *)a->ai_addr;
160 a->ai_addr = malloc (sizeof(*sin6));
161 if (a->ai_addr == NULL)
163 sin6 = (struct sockaddr_in6 *)a->ai_addr;
/freebsd-head/usr.sbin/pnfsdsfile/
H A Dpnfsdsfile.c185 if (ad->ai_addr->sa_family == AF_INET &&
188 memcpy(&adsin, ad->ai_addr,
194 if (ad->ai_addr->sa_family == AF_INET6 &&
197 memcpy(&adsin6, ad->ai_addr,
223 if (ad->ai_addr->sa_family == AF_INET &&
226 memcpy(&adsin, ad->ai_addr,
232 if (ad->ai_addr->sa_family == AF_INET6 &&
235 memcpy(&adsin6, ad->ai_addr,
265 if (ad->ai_addr->sa_family == AF_INET &&
268 memcpy(&adsin, ad->ai_addr,
[all...]
/freebsd-head/contrib/netbsd-tests/net/net/
H A Dt_udp.c40 e = bind(S, res->ai_addr, res->ai_addrlen);
50 e = sendto(s, msg, sizeof(msg), 0, res->ai_addr, res->ai_addrlen);
54 e = sendto(s, msg, sizeof(msg), 0, res->ai_addr, res->ai_addrlen);
59 e = connect(s, res->ai_addr, res->ai_addrlen);
67 e = connect(s, res->ai_addr, res->ai_addrlen);
/freebsd-head/lib/libc/tests/nss/
H A Dgetaddrinfo_test.c82 if (src->ai_addr != NULL) {
83 dest->ai_addr = malloc(src->ai_addrlen);
84 ATF_REQUIRE(dest->ai_addr != NULL);
85 memcpy(dest->ai_addr, src->ai_addr, src->ai_addrlen);
107 ((ai1->ai_addr == NULL || ai2->ai_addr == NULL) &&
108 ai1->ai_addr != ai2->ai_addr) ||
117 if (ai1->ai_addr !
[all...]
/freebsd-head/usr.sbin/ctld/
H A Disns.c160 switch (ai->ai_addr->sa_family) {
162 in4 = (struct sockaddr_in *)(void *)ai->ai_addr;
170 in6 = (struct sockaddr_in6 *)(void *)ai->ai_addr;
175 ai->ai_addr->sa_family);
186 switch (ai->ai_addr->sa_family) {
188 in4 = (struct sockaddr_in *)(void *)ai->ai_addr;
193 in6 = (struct sockaddr_in6 *)(void *)ai->ai_addr;
199 ai->ai_addr->sa_family);
/freebsd-head/contrib/ldns/compat/
H A Dfake-rfc2553.c131 ai->ai_addr = (struct sockaddr *)(ai + 1);
134 ai->ai_addr->sa_family = ai->ai_family = AF_INET;
136 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
137 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
/freebsd-head/contrib/unbound/compat/
H A Dfake-rfc2553.c127 ai->ai_addr = (struct sockaddr *)(ai + 1);
130 ai->ai_addr->sa_family = ai->ai_family = AF_INET;
132 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
133 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
/freebsd-head/contrib/bsnmp/lib/
H A Dsupport.c152 if (((*res)->ai_addr = malloc(sizeof(struct sockaddr_in))) == NULL) {
157 s = (struct sockaddr_in *)(*res)->ai_addr;
187 if (p->ai_addr != NULL)
188 free(p->ai_addr);
H A Dsupport.h58 struct sockaddr *ai_addr; member in struct:addrinfo
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c134 ai->ai_addr = (struct sockaddr *)(ai + 1);
137 ai->ai_addr->sa_family = ai->ai_family = AF_INET;
139 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
140 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
/freebsd-head/contrib/libpcap/
H A Dnametoaddr.c341 if (ai->ai_addr != NULL) {
345 if (ai->ai_addr->sa_family == AF_INET) {
346 in4 = (struct sockaddr_in *)ai->ai_addr;
351 if (ai->ai_addr->sa_family == AF_INET6) {
352 in6 = (struct sockaddr_in6 *)ai->ai_addr;
385 if (ai->ai_addr != NULL) {
389 if (ai->ai_addr->sa_family == AF_INET) {
390 in4 = (struct sockaddr_in *)ai->ai_addr;
395 if (ai->ai_addr->sa_family == AF_INET6) {
396 in6 = (struct sockaddr_in6 *)ai->ai_addr;
[all...]
/freebsd-head/sbin/setkey/
H A Dparse.y836 if (s->ai_addr->sa_family != d->ai_addr->sa_family)
838 switch (s->ai_addr->sa_family) {
852 sa = s->ai_addr;
853 salen = s->ai_addr->sa_len;
866 sa = d->ai_addr;
867 salen = d->ai_addr->sa_len;
969 if (s->ai_addr->sa_family != d->ai_addr->sa_family)
971 switch (s->ai_addr
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A Dh_gai.c68 if (res->ai_addr) {
69 error = getnameinfo(res->ai_addr, res->ai_addr->sa_len,
/freebsd-head/usr.bin/finger/
H A Dnet.c127 msg.msg_name = (void *)ai->ai_addr;
146 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) {
225 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, buf, sizeof buf,
/freebsd-head/contrib/ofed/librdmacm/
H A Daddrinfo.c89 ai->ai_addr = rai->ai_src_addr;
92 ai->ai_addr = rai->ai_dst_addr;
187 (struct sockaddr_in6 *) ai->ai_addr,
192 ai->ai_addr, ai->ai_addrlen);
204 (struct sockaddr_in6 *) ai->ai_addr,
209 ai->ai_addr, ai->ai_addrlen);
/freebsd-head/contrib/netbsd-tests/net/sys/
H A Dt_rfc6056.c95 res->ai_addr, res->ai_addrlen) == -1)
108 if (connect(s, res->ai_addr, res->ai_addrlen) == -1)
/freebsd-head/usr.sbin/rpc.statd/
H A Dstatd.c437 res->ai_addr = (struct sockaddr*) sin;
448 res->ai_addr = (struct sockaddr*) sin6;
483 r = bindresvport_sa(fd, res->ai_addr);
487 free(res->ai_addr);
503 if (getnameinfo(res->ai_addr,
504 res->ai_addr->sa_len, NULL, NI_MAXHOST,
510 free(res->ai_addr);
598 memcpy(servaddr.buf, res->ai_addr, res->ai_addrlen);
/freebsd-head/contrib/ipfilter/lib/
H A Dgethost.c68 sin6 = (struct sockaddr_in6 *)res->ai_addr;
/freebsd-head/usr.sbin/lpr/common_source/
H A Dnet.c111 ((struct sockaddr_in *) res->ai_addr)->sin_port = htons(rport);
138 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) {
233 if (getnameinfo(lr->ai_addr, lr->ai_addrlen, h1, sizeof(h1),
238 if (getnameinfo(rr->ai_addr, rr->ai_addrlen,

Completed in 515 milliseconds

12345678910