Searched refs:ahints (Results 1 – 3 of 3) sorted by relevance
/openbsd/usr.bin/ftp/ |
H A D | ftp.c | 164 struct addrinfo ahints; in hookup() local 166 memset(&ahints, 0, sizeof(ahints)); in hookup() 167 ahints.ai_family = family; in hookup() 168 ahints.ai_socktype = SOCK_STREAM; in hookup() 169 ahints.ai_flags |= AI_NUMERICHOST; in hookup() 170 ahints.ai_protocol = 0; in hookup() 1279 struct addrinfo ahints; in initconn() local 1281 memset(&ahints, 0, sizeof(ahints)); in initconn() 1282 ahints.ai_family = family; in initconn() 1283 ahints.ai_socktype = SOCK_STREAM; in initconn() [all …]
|
/openbsd/usr.bin/telnet/ |
H A D | commands.c | 1839 struct addrinfo ahints, *ares; in tn() local 1841 memset(&ahints, 0, sizeof(ahints)); in tn() 1842 ahints.ai_family = family; in tn() 1843 ahints.ai_socktype = SOCK_STREAM; in tn() 1844 ahints.ai_flags = AI_PASSIVE; in tn() 1845 error = getaddrinfo(aliasp, "0", &ahints, &ares); in tn()
|
/openbsd/usr.bin/nc/ |
H A D | netcat.c | 939 struct addrinfo ahints, *ares; in remote_connect() local 943 memset(&ahints, 0, sizeof(struct addrinfo)); in remote_connect() 944 ahints.ai_family = res->ai_family; in remote_connect() 945 ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; in remote_connect() 946 ahints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; in remote_connect() 947 ahints.ai_flags = AI_PASSIVE; in remote_connect() 948 if ((error = getaddrinfo(sflag, pflag, &ahints, &ares))) in remote_connect()
|