Home
last modified time | relevance | path

Searched refs:ai_socktype (Results 1 – 25 of 150) sorted by relevance

123456

/openbsd/regress/lib/libc/getaddrinfo/
H A Dgaitest.c96 printf("%ssocktype %d%s", start, res->ai_socktype, end);
131 ai.ai_socktype = SOCK_DGRAM;
143 ai.ai_socktype = SOCK_RAW;
146 ai.ai_socktype = atoi(optarg);
149 ai.ai_socktype = SOCK_STREAM;
/openbsd/regress/sys/kern/sosplice/perf/
H A Drelay.c139 ls[nls] = socket(res->ai_family, res->ai_socktype, in socket_listen()
160 if (hints->ai_socktype == SOCK_STREAM) { in socket_listen()
245 cs = socket(res->ai_family, res->ai_socktype, in socket_connect()
312 hints.ai_socktype = SOCK_STREAM; in main()
326 hints.ai_socktype = SOCK_STREAM; in main()
329 hints.ai_socktype = SOCK_DGRAM; in main()
346 if (hints.ai_socktype == SOCK_STREAM) { in main()
362 if (hints.ai_socktype == SOCK_STREAM) { in main()
/openbsd/regress/lib/libc/asr/bin/
H A Dgetaddrinfo.c99 hints.ai_socktype = SOCK_STREAM; in main()
101 hints.ai_socktype = SOCK_DGRAM; in main()
103 hints.ai_socktype = SOCK_RAW; in main()
/openbsd/regress/sys/netinet/ipsec/
H A Dnonxt-sendrecv.c70 hints.ai_socktype = SOCK_RAW; in main()
76 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
97 hints.ai_socktype = SOCK_RAW; in main()
H A Dnonxt-reflect.c64 hints.ai_socktype = SOCK_RAW; in main()
71 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
/openbsd/gnu/llvm/lldb/source/Host/common/
H A DSocketAddress.cpp209 int ai_family, int ai_socktype, int ai_protocol, in getaddrinfo() argument
213 auto addresses = GetAddressInfo(host, service, ai_family, ai_socktype, in getaddrinfo()
222 int ai_family, int ai_socktype, int ai_protocol, in GetAddressInfo() argument
229 hints.ai_socktype = ai_socktype; in GetAddressInfo()
H A DUDPSocket.cpp74 hints.ai_socktype = kType; in Connect()
92 service_info_ptr->ai_family, service_info_ptr->ai_socktype, in Connect()
/openbsd/regress/sys/netinet6/srcaddr/
H A Dsrcaddr.c59 hints.ai_socktype = SOCK_DGRAM; in main()
64 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
/openbsd/usr.sbin/lpr/lpd/
H A Dallowedhost.c147 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in checkhost()
199 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in gethostloop()
236 hints.ai_socktype = SOCK_STREAM; in main()
/openbsd/usr.sbin/radiusd/
H A Dutil.c66 hints.ai_socktype = SOCK_STREAM; in addrport_parse()
69 hints.ai_socktype = SOCK_DGRAM; in addrport_parse()
/openbsd/usr.sbin/rdate/
H A Drfc868time.c73 hints.ai_socktype = SOCK_STREAM; in rfc868time_client()
85 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in rfc868time_client()
/openbsd/usr.bin/finger/
H A Dnet.c64 hints.ai_socktype = SOCK_STREAM; in netfinger()
73 if ((s = socket(res->ai_family, res->ai_socktype, in netfinger()
/openbsd/regress/usr.bin/nc/
H A Dclient-tcp.c101 hints.ai_socktype = SOCK_STREAM; in connect_socket()
107 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in connect_socket()
H A Dserver-tcp.c115 hints.ai_socktype = SOCK_STREAM; in listen_socket()
121 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in listen_socket()
/openbsd/regress/sys/net/pflow/
H A Dgen_traffic.c93 hints.ai_socktype = SOCK_STREAM; in main()
97 s = socket(server_res->ai_family, server_res->ai_socktype, in main()
118 s = socket(sender_res->ai_family, sender_res->ai_socktype, in main()
/openbsd/lib/libc/asr/
H A Dgetaddrinfo_async.c176 if (ai->ai_socktype && in getaddrinfo_async_run()
177 ai->ai_socktype != SOCK_DGRAM && in getaddrinfo_async_run()
178 ai->ai_socktype != SOCK_STREAM && in getaddrinfo_async_run()
179 ai->ai_socktype != SOCK_RAW) { in getaddrinfo_async_run()
185 if (ai->ai_socktype == SOCK_RAW && in getaddrinfo_async_run()
205 MATCH_SOCKTYPE(ai->ai_socktype, i) && in getaddrinfo_async_run()
550 !MATCH_SOCKTYPE(as->as.ai.hints.ai_socktype, i) || in addrinfo_add()
573 ai->ai_socktype = matches[i].socktype; in addrinfo_add()
/openbsd/lib/libcrypto/bio/
H A Db_sock.c43 .ai_socktype = SOCK_STREAM, in BIO_get_host_ip()
73 .ai_socktype = SOCK_STREAM, in BIO_get_port()
132 .ai_socktype = SOCK_STREAM, in BIO_get_accept_socket()
/openbsd/gnu/llvm/lldb/include/lldb/Host/
H A DSocketAddress.h39 int ai_socktype, int ai_protocol, int ai_flags = 0);
99 int ai_family = PF_UNSPEC, int ai_socktype = 0,
/openbsd/regress/lib/libcrypto/ocsp/
H A Docsp_test.c36 hints.ai_socktype = SOCK_STREAM; in tcp_connect()
50 sd = socket(r->ai_family, r->ai_socktype, r->ai_protocol); in tcp_connect()
/openbsd/usr.sbin/npppd/common/
H A Dnet_utils.c124 hints.ai_socktype = SOCK_STREAM; in addrport_parse()
127 hints.ai_socktype = SOCK_DGRAM; in addrport_parse()
/openbsd/usr.sbin/lpd/
H A Dresolver.c95 m_add_int(p_resolver, hints ? hints->ai_socktype : 0); in resolver_getaddrinfo()
150 m_get_int(proc, &hints.ai_socktype); in resolver_dispatch_request()
243 m_get_int(proc, &ai->ai_socktype); in resolver_dispatch_result()
317 m_add_int(s->proc, ai->ai_socktype); in resolver_getaddrinfo_cb()
/openbsd/usr.bin/whois/
H A Dwhois.c178 hints.ai_socktype = SOCK_STREAM; in whois()
189 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in whois()
302 hints.ai_socktype = SOCK_STREAM; in choose_server()
/openbsd/gnu/llvm/llvm/tools/llvm-jitlink/llvm-jitlink-executor/
H A Dllvm-jitlink-executor.cpp71 Hints.ai_socktype = SOCK_STREAM; in openListener()
82 if ((SockFD = socket(AI->ai_family, AI->ai_socktype, AI->ai_protocol)) < 0) { in openListener()
/openbsd/lib/libc/net/
H A Druserok.c65 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in ruserok()
315 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in __icheckhost()
368 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in __gethostloop()
/openbsd/usr.sbin/ntpd/
H A Dconfig.c66 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in host_ip()
101 hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ in host_dns1()

123456