Lines Matching refs:hostaddr
416 * The address of the remote host will be returned in hostaddr.
427 struct sockaddr_storage *hostaddr, u_short port, int family,
469 memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen);
505 struct sockaddr_storage *hostaddr, u_short port, int family,
509 return ssh_connect_direct(host, addrs, hostaddr, port, family,
725 sockaddr_is_local(struct sockaddr *hostaddr)
727 switch (hostaddr->sa_family) {
729 return (ntohl(((struct sockaddr_in *)hostaddr)->
733 &(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
744 get_hostfile_hostname_ipaddr(char *hostname, struct sockaddr *hostaddr,
750 switch (hostaddr == NULL ? -1 : hostaddr->sa_family) {
771 if (getnameinfo(hostaddr, addrlen,
805 check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
819 int local = sockaddr_is_local(hostaddr);
844 get_hostfile_hostname_ipaddr(hostname, hostaddr, port, &host, &ip);
938 if (check_host_key(hostname, hostaddr, 0, host_key,
1237 verify_host_key(char *host, struct sockaddr *hostaddr, Key *host_key)
1290 if (verify_host_key_dns(host, hostaddr, plain, &flags) == 0) {
1309 r = check_host_key(host, hostaddr, options.port, host_key, RDRW,
1333 struct sockaddr *hostaddr, u_short port, struct passwd *pw, int timeout_ms)
1355 ssh_kex2(host, hostaddr, port);
1359 ssh_kex(host, hostaddr);