Home
last modified time | relevance | path

Searched refs:ainfo (Results 1 – 5 of 5) sorted by relevance

/net-tools-2.7.6/tinydtls-0.8.2/tests/
Ddtls-server.c189 struct addrinfo *res, *ainfo; in resolve_address() local
211 for (ainfo = res; ainfo != NULL; ainfo = ainfo->ai_next) { in resolve_address()
213 switch (ainfo->ai_family) { in resolve_address()
216 memcpy(dst, ainfo->ai_addr, ainfo->ai_addrlen); in resolve_address()
217 return ainfo->ai_addrlen; in resolve_address()
Ddtls-client.c243 struct addrinfo *res, *ainfo; in resolve_address() local
265 for (ainfo = res; ainfo != NULL; ainfo = ainfo->ai_next) { in resolve_address()
267 switch (ainfo->ai_family) { in resolve_address()
271 memcpy(dst, ainfo->ai_addr, ainfo->ai_addrlen); in resolve_address()
272 return ainfo->ai_addrlen; in resolve_address()
/net-tools-2.7.6/libcoap/examples/
Dcoap-server.c388 struct addrinfo *reslocal = NULL, *resmulti = NULL, hints, *ainfo; in join() local
404 for (ainfo = reslocal; ainfo != NULL; ainfo = ainfo->ai_next) { in join()
405 if (ainfo->ai_family == AF_INET6) { in join()
407 ((struct sockaddr_in6 *)ainfo->ai_addr)->sin6_scope_id; in join()
425 for (ainfo = resmulti; ainfo != NULL; ainfo = ainfo->ai_next) { in join()
426 if (ainfo->ai_family == AF_INET6) { in join()
428 ((struct sockaddr_in6 *)ainfo->ai_addr)->sin6_addr; in join()
Dcoap-rd.c617 struct addrinfo *reslocal = NULL, *resmulti = NULL, hints, *ainfo; in join() local
632 for (ainfo = reslocal; ainfo != NULL; ainfo = ainfo->ai_next) { in join()
633 if ( ainfo->ai_family == AF_INET6 ) { in join()
635 ((struct sockaddr_in6 *)ainfo->ai_addr)->sin6_scope_id; in join()
652 for (ainfo = resmulti; ainfo != NULL; ainfo = ainfo->ai_next) { in join()
653 if ( ainfo->ai_family == AF_INET6 ) { in join()
655 ((struct sockaddr_in6 *)ainfo->ai_addr)->sin6_addr; in join()
Dclient.c263 struct addrinfo *res, *ainfo; in resolve_address() local
285 for (ainfo = res; ainfo != NULL; ainfo = ainfo->ai_next) { in resolve_address()
286 switch (ainfo->ai_family) { in resolve_address()
289 len = ainfo->ai_addrlen; in resolve_address()
290 memcpy(dst, ainfo->ai_addr, len); in resolve_address()