/netbsd-src/usr.bin/getaddrinfo/ |
H A D | getaddrinfo.c | 74 hints.ai_socktype = 0; in main() 108 if (!parse_socktype(optarg, &hints.ai_socktype)) { in main() 264 if ((ai->ai_socktype >= 0) && in printaddrinfo() 265 ((size_t)ai->ai_socktype < __arraycount(socket_types)) && in printaddrinfo() 266 (socket_types[ai->ai_socktype] != NULL)) in printaddrinfo() 267 n = printf("%s", socket_types[ai->ai_socktype]); in printaddrinfo() 269 n = printf("%d", ai->ai_socktype); in printaddrinfo()
|
/netbsd-src/tests/lib/libc/net/getaddrinfo/ |
H A D | h_gai.c | 87 printf("%ssocktype %d%s", start, res->ai_socktype, end); in print1() 122 ai.ai_socktype = SOCK_DGRAM; in main() 134 ai.ai_socktype = SOCK_RAW; in main() 137 ai.ai_socktype = atoi(optarg); in main() 140 ai.ai_socktype = SOCK_STREAM; in main()
|
H A D | sock_raw_v4.exp | 8 servname not supported for ai_socktype 10 servname not supported for ai_socktype
|
H A D | sock_raw_v4v6.exp | 10 servname not supported for ai_socktype 12 servname not supported for ai_socktype
|
/netbsd-src/external/gpl2/xcvs/dist/lib/ |
H A D | getaddrinfo.c | 80 hints->ai_socktype != SOCK_STREAM && hints->ai_socktype != SOCK_DGRAM) in getaddrinfo() 91 (hints && hints->ai_socktype == SOCK_DGRAM) ? "udp" : "tcp"; in getaddrinfo() 189 tmp->ai_socktype = (hints) ? hints->ai_socktype : 0; in getaddrinfo()
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/ |
H A D | netdb.d | 196 int ai_socktype; in version() member 280 int ai_socktype; in version() member 364 int ai_socktype; in version() member 460 int ai_socktype; in version() member 557 int ai_socktype; in version() member 642 …int ai_socktype = SOCK_STREAM; /* socktype default value required to be able to … in version() member 745 int ai_socktype; in version() member 834 int ai_socktype; in version() member 908 int ai_socktype; in version() member 993 int ai_socktype; in version() member
|
/netbsd-src/external/mpl/dhcp/bind/dist/lib/irs/ |
H A D | getaddrinfo.c | 270 socktype = hints->ai_socktype; in getaddrinfo() 275 switch (hints->ai_socktype) { in getaddrinfo() 286 switch (hints->ai_socktype) { in getaddrinfo() 303 switch (hints->ai_socktype) { in getaddrinfo() 411 ai->ai_socktype = socktype; in getaddrinfo() 424 ai->ai_socktype = socktype; in getaddrinfo() 511 ai->ai_socktype = socktype; in getaddrinfo() 595 int ai_socktype; member 840 ai->ai_socktype = resstate->head->ai_socktype; in process_answer() 998 head.ai_socktype = socktype; in resolve_name() [all …]
|
/netbsd-src/external/bsd/ntp/dist/libntp/ |
H A D | ntp_rfc2553.c | 310 ai->ai_socktype = hints->ai_socktype; in getaddrinfo() 314 socktype = hints->ai_socktype; in getaddrinfo() 320 switch (hints->ai_socktype) { in getaddrinfo() 331 switch (hints->ai_socktype) { in getaddrinfo() 348 switch (hints->ai_socktype) { in getaddrinfo()
|
/netbsd-src/external/bsd/libbind/dist/irs/ |
H A D | getaddrinfo.c | 339 pai->ai_socktype = ANY; 385 if (pai->ai_socktype != ANY && pai->ai_protocol != ANY) { 393 if (pai->ai_socktype == ex->e_socktype && 456 if (!MATCH(pai->ai_socktype, ex->e_socktype, WILD_SOCKTYPE(ex))) 463 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) 464 pai->ai_socktype = ex->e_socktype; 542 if (!MATCH(pai->ai_socktype, ex->e_socktype, 563 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) 564 pai->ai_socktype = ex->e_socktype; 716 cur->ai_next->ai_socktype = pai->ai_socktype; [all …]
|
/netbsd-src/external/bsd/unbound/dist/compat/ |
H A D | fake-rfc2553.c | 136 if (hints->ai_socktype) in malloc_ai() 137 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 139 ai->ai_socktype = SOCK_STREAM; in malloc_ai()
|
/netbsd-src/external/bsd/nsd/dist/compat/ |
H A D | fake-rfc2553.c | 136 if (hints->ai_socktype) in malloc_ai() 137 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 139 ai->ai_socktype = SOCK_STREAM; in malloc_ai()
|
/netbsd-src/tests/net/sys/ |
H A D | t_rfc6056.c | 60 hints.ai_socktype = SOCK_DGRAM; in test() 80 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test() 101 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test()
|
/netbsd-src/tests/net/net/ |
H A D | t_udp.c | 27 hints.ai_socktype = SOCK_DGRAM; in sendit() 36 S = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit() 45 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in sendit()
|
/netbsd-src/external/mit/libuv/dist/src/win/ |
H A D | getaddrinfo.c | 58 int ai_socktype; member 164 addrinfo_ptr->ai_socktype = addrinfow_ptr->ai_socktype; in uv__getaddrinfo_done() 365 req->addrinfow->ai_socktype = hints->ai_socktype; in uv_getaddrinfo()
|
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | getaddrinfo_hostspec.c | 69 hints.ai_socktype = socktype; in roken_getaddrinfo_hostspec2() 73 hints.ai_socktype = hstp->socktype; in roken_getaddrinfo_hostspec2()
|
H A D | getaddrinfo-test.c | 81 hints.ai_socktype = socktype; in doit() 103 r->ai_family, r->ai_socktype, r->ai_protocol, in doit()
|
/netbsd-src/tests/net/ipsec/ |
H A D | natt_terminator.c | 88 hints.ai_socktype = SOCK_DGRAM; in main() 96 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
|
/netbsd-src/external/bsd/libevent/dist/ |
H A D | evutil.c | 842 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_() 847 tmp.ai_socktype = SOCK_STREAM; tmp.ai_protocol = IPPROTO_TCP; in evutil_new_addrinfo_() 851 tmp.ai_socktype = SOCK_DGRAM; tmp.ai_protocol = IPPROTO_UDP; in evutil_new_addrinfo_() 871 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_() 959 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols() 960 if (hints->ai_socktype == SOCK_DGRAM) in evutil_getaddrinfo_infer_protocols() 962 else if (hints->ai_socktype == SOCK_STREAM) in evutil_getaddrinfo_infer_protocols() 967 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols() 969 hints->ai_socktype = SOCK_DGRAM; in evutil_getaddrinfo_infer_protocols() 971 hints->ai_socktype = SOCK_STREAM; in evutil_getaddrinfo_infer_protocols() [all …]
|
/netbsd-src/usr.bin/finger/ |
H A D | net.c | 83 hints.ai_socktype = SOCK_STREAM; in netfinger() 93 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in netfinger()
|
/netbsd-src/sbin/mount_portal/ |
H A D | pt_tcp.c | 104 hints.ai_socktype = SOCK_STREAM; in portal_tcp() 113 so = socket(lres->ai_family, lres->ai_socktype, in portal_tcp()
|
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/ipc/ |
H A D | ts-http.c | 85 hints.ai_socktype = SOCK_STREAM; in setup_sockets() 92 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in setup_sockets()
|
/netbsd-src/external/ibm-public/postfix/dist/src/util/ |
H A D | myaddrinfo.c | 261 ip->info.ai_socktype = socktype; in init_ipv4addrinfo() 438 hints.ai_socktype = service ? socktype : MAI_SOCKTYPE; in hostname_to_sockaddr_pf() 558 hints.ai_socktype = service ? socktype : MAI_SOCKTYPE; in hostaddr_to_sockaddr() 869 ip->ai_family, ip->ai_socktype, ip->ai_protocol, addr.buf); in main() 894 ip->ai_family, ip->ai_socktype, ip->ai_protocol, addr.buf); in main()
|
/netbsd-src/external/gpl3/gcc/dist/libcody/ |
H A D | netclient.cc | 98 hints.ai_socktype = SOCK_STREAM; in OpenInet6() 119 && next->ai_socktype == SOCK_STREAM) in OpenInet6()
|
/netbsd-src/usr.sbin/rdate/ |
H A D | rdate.c | 121 hints.ai_socktype = SOCK_STREAM; in main() 128 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
|
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
H A D | verify_krb5_conf.c | 158 hints.ai_socktype = 0; in check_host() 170 hints.ai_socktype = SOCK_STREAM; in check_host() 175 hints.ai_socktype = SOCK_STREAM; in check_host() 180 hints.ai_socktype = SOCK_STREAM; in check_host() 185 hints.ai_socktype = SOCK_DGRAM; in check_host() 189 hints.ai_socktype = SOCK_DGRAM; in check_host()
|