search for: fd_ai

Displaying 1 result from an estimated 1 matches for "fd_ai".

2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...as not tried. Return -1 if using it + * failed. Return 1 if it was used. + */ +static int +ssh_connect_happy_eyeballs_initiate(const char *host, struct addrinfo *ai, + int *timeout_ms, int needpriv, + struct timeval *initiate, + int *nfds, fd_set *fds, + struct addrinfo *fd_ai[]) +{ + int oerrno, sock; + char ntop[NI_MAXHOST], strport[NI_MAXSERV]; + + memset(ntop, 0, sizeof(ntop)); + memset(strport, 0, sizeof(strport)); + /* If *nfds != 0 then *initiate is initialised. */ + if (*nfds && + (ai == NULL || + !ssh_connect_timeout(initiate, CONNECTION_ATTEMP...