Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 9 of 9) sorted by relevance

/net-tools-3.5.0/mbedtls-2.4.0/library/
Dnet_sockets.c139 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_connect() local
145 memset( &hints, 0, sizeof( hints ) ); in mbedtls_net_connect()
146 hints.ai_family = AF_UNSPEC; in mbedtls_net_connect()
147 hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM; in mbedtls_net_connect()
148 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_connect()
150 if( getaddrinfo( host, port, &hints, &addr_list ) != 0 ) in mbedtls_net_connect()
186 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_bind() local
192 memset( &hints, 0, sizeof( hints ) ); in mbedtls_net_bind()
193 hints.ai_family = AF_UNSPEC; in mbedtls_net_bind()
194 hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM; in mbedtls_net_bind()
[all …]
/net-tools-3.5.0/libcoap/examples/
Dcoap-server.c347 struct addrinfo hints; in get_context() local
350 memset(&hints, 0, sizeof(struct addrinfo)); in get_context()
351 hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in get_context()
352 hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ in get_context()
353 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; in get_context()
355 s = getaddrinfo(node, port, &hints, &result); in get_context()
388 struct addrinfo *reslocal = NULL, *resmulti = NULL, hints, *ainfo; in join() local
392 memset(&hints, 0, sizeof(hints)); in join()
393 hints.ai_family = AF_INET6; in join()
394 hints.ai_socktype = SOCK_DGRAM; in join()
[all …]
Dtiny.c69 struct addrinfo hints; in get_context() local
72 memset(&hints, 0, sizeof(struct addrinfo)); in get_context()
73 hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in get_context()
74 hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ in get_context()
75 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_ALL; in get_context()
77 s = getaddrinfo(node, port, &hints, &result); in get_context()
Dcoap-rd.c576 struct addrinfo hints; in get_context() local
579 memset(&hints, 0, sizeof(struct addrinfo)); in get_context()
580 hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in get_context()
581 hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ in get_context()
582 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; in get_context()
584 s = getaddrinfo(node, port, &hints, &result); in get_context()
617 struct addrinfo *reslocal = NULL, *resmulti = NULL, hints, *ainfo; in join() local
621 memset(&hints, 0, sizeof(hints)); in join()
622 hints.ai_family = AF_INET6; in join()
623 hints.ai_socktype = SOCK_DGRAM; in join()
[all …]
Dclient.c264 struct addrinfo hints; in resolve_address() local
274 memset ((char *)&hints, 0, sizeof(hints)); in resolve_address()
275 hints.ai_socktype = SOCK_DGRAM; in resolve_address()
276 hints.ai_family = AF_UNSPEC; in resolve_address()
278 error = getaddrinfo(addrstr, NULL, &hints, &res); in resolve_address()
985 struct addrinfo hints; in get_context() local
988 memset(&hints, 0, sizeof(struct addrinfo)); in get_context()
989 hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in get_context()
990 hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ in get_context()
991 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_ALL; in get_context()
[all …]
Detsi_iot_01.c634 struct addrinfo hints; in get_context() local
637 memset(&hints, 0, sizeof(struct addrinfo)); in get_context()
638 hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in get_context()
639 hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ in get_context()
640 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; in get_context()
642 s = getaddrinfo(node, port, &hints, &result); in get_context()
/net-tools-3.5.0/tinydtls-0.8.2/tests/
Ddtls-server.c190 struct addrinfo hints; in resolve_address() local
200 memset ((char *)&hints, 0, sizeof(hints)); in resolve_address()
201 hints.ai_socktype = SOCK_DGRAM; in resolve_address()
202 hints.ai_family = AF_UNSPEC; in resolve_address()
204 error = getaddrinfo(addrstr, "", &hints, &res); in resolve_address()
Ddtls-client.c244 struct addrinfo hints; in resolve_address() local
254 memset ((char *)&hints, 0, sizeof(hints)); in resolve_address()
255 hints.ai_socktype = SOCK_DGRAM; in resolve_address()
256 hints.ai_family = AF_UNSPEC; in resolve_address()
258 error = getaddrinfo(addrstr, "", &hints, &res); in resolve_address()
/net-tools-3.5.0/
Dtunslip6.c400 struct addrinfo hints, *servinfo, *p; in get_slipfd() local
408 memset(&hints, 0, sizeof hints); in get_slipfd()
409 hints.ai_family = AF_UNSPEC; in get_slipfd()
410 hints.ai_socktype = SOCK_STREAM; in get_slipfd()
412 if((rv = getaddrinfo(host, port, &hints, &servinfo)) != 0) { in get_slipfd()