Displaying 1 result from an estimated 1 matches for "diff0".
Did you mean:
diff
2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...tatic int
+ssh_connect_happy_eyeballs(const char * host, struct addrinfo *ai,
+ struct sockaddr_storage *hostaddr, int *timeout_ms,
+ int needpriv)
+{
+ struct addrinfo *fd_ai[FD_SETSIZE];
+ struct timeval initiate_tv, start_tv, select_tv, *tv;
+ fd_set fds, wfds;
+ int res, oerrno, diff, diff0, nfds = 0, sock = -1;
+ FD_ZERO(&fds);
+ if (*timeout_ms > 0)
+ monotime_tv(&start_tv);
+ while ((ai != NULL || nfds > 0) &&
+ ! ssh_connect_timeout(&start_tv, *timeout_ms)) {
+ res = ssh_connect_happy_eyeballs_initiate(host, ai,
+ timeout_ms, needpriv,
+...