/external/openssh/ |
D | sshconnect.c | 337 ssh_connect(const char *host, struct sockaddr_storage * hostaddr, in ssh_connect() argument 394 memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen); in ssh_connect() 612 sockaddr_is_local(struct sockaddr *hostaddr) in sockaddr_is_local() argument 614 switch (hostaddr->sa_family) { in sockaddr_is_local() 616 return (ntohl(((struct sockaddr_in *)hostaddr)-> in sockaddr_is_local() 620 &(((struct sockaddr_in6 *)hostaddr)->sin6_addr)); in sockaddr_is_local() 631 get_hostfile_hostname_ipaddr(char *hostname, struct sockaddr *hostaddr, in get_hostfile_hostname_ipaddr() argument 637 switch (hostaddr == NULL ? -1 : hostaddr->sa_family) { in get_hostfile_hostname_ipaddr() 658 if (getnameinfo(hostaddr, addrlen, in get_hostfile_hostname_ipaddr() 692 check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, in check_host_key() argument [all …]
|
D | loginrec.c | 422 if (sizeof(li->hostaddr) < sa_size) in login_set_addr() 423 bufsize = sizeof(li->hostaddr); in login_set_addr() 425 memcpy(&li->hostaddr.sa, sa, bufsize); in login_set_addr() 702 if (li->hostaddr.sa.sa_family == AF_INET) in construct_utmp() 703 ut->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr; in construct_utmp() 707 if (li->hostaddr.sa.sa_family == AF_INET6) { in construct_utmp() 708 sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa); in construct_utmp() 784 if (li->hostaddr.sa.sa_family == AF_INET) in construct_utmpx() 785 utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr; in construct_utmpx() 789 if (li->hostaddr.sa.sa_family == AF_INET6) { in construct_utmpx() [all …]
|
D | roaming_client.c | 55 extern struct sockaddr_storage hostaddr; 263 if (ssh_connect(host, &hostaddr, options.port, in wait_for_roaming_reconnect()
|
D | loginrec.h | 79 union login_netinfo hostaddr; /* caller's host address(es) */ member
|
D | logintest.c | 79 li->hostaddr.sa.sa_family); in dump_logininfo()
|
D | sshconnect1.c | 480 ssh_kex(char *host, struct sockaddr *hostaddr) in ssh_kex() argument 538 if (verify_host_key(host, hostaddr, host_key) == -1) in ssh_kex()
|
D | sshconnect2.c | 106 order_hostkeyalgs(char *host, struct sockaddr *hostaddr, u_short port) in order_hostkeyalgs() argument 115 get_hostfile_hostname_ipaddr(host, hostaddr, port, &hostname, NULL); in order_hostkeyalgs() 159 ssh_kex2(char *host, struct sockaddr *hostaddr, u_short port) in ssh_kex2() argument 164 xxx_hostaddr = hostaddr; in ssh_kex2() 195 order_hostkeyalgs(host, hostaddr, port); in ssh_kex2()
|
D | ssh.c | 171 struct sockaddr_storage hostaddr; variable 793 if (ssh_connect(host, &hostaddr, options.port, in main() 911 ssh_login(&sensitive_data, host, (struct sockaddr *)&hostaddr, in main()
|
/external/mdnsresponder/mDNSPosix/ |
D | Identify.c | 70 static mDNSAddr lastsrc, hostaddr, target; variable 132 hostaddr.type = mDNSAddrType_IPv4; // Prefer v4 target to v6 target, for now in InfoCallback() 133 hostaddr.ip.v4 = answer->rdata->u.ipv4; in InfoCallback() 141 if (!hostaddr.type) // Prefer v4 target to v6 target, for now in InfoCallback() 143 hostaddr.type = mDNSAddrType_IPv6; in InfoCallback() 144 hostaddr.ip.v6 = answer->rdata->u.ipv6; in InfoCallback() 303 hostaddr = target = zeroAddr; in main() 366 if (target.type == 0) target = hostaddr; // Make sure the services query is targeted in main()
|
/external/dropbear/ |
D | loginrec.c | 316 if (sizeof(li->hostaddr) < sa_size) in login_set_addr() 317 bufsize = sizeof(li->hostaddr); in login_set_addr() 319 memcpy((void *)&(li->hostaddr.sa), (const void *)sa, bufsize); in login_set_addr() 545 if (li->hostaddr.sa.sa_family == AF_INET) in construct_utmp() 546 ut->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr; in construct_utmp() 550 if (li->hostaddr.sa.sa_family == AF_INET6) { in construct_utmp() 551 sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa); in construct_utmp() 625 if (li->hostaddr.sa.sa_family == AF_INET) in construct_utmpx() 626 utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr; in construct_utmpx() 630 if (li->hostaddr.sa.sa_family == AF_INET6) { in construct_utmpx() [all …]
|
D | loginrec.h | 144 union login_netinfo hostaddr; /* caller's host address(es) */ member
|
/external/quake/quake/src/WinQuake/ |
D | net_mp.cpp | 193 static int PartialIPAddress (char *in, struct qsockaddr *hostaddr) in PartialIPAddress() argument 235 hostaddr->sa_family = AF_INET; in PartialIPAddress() 236 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress() 237 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); in PartialIPAddress()
|
D | net_udp.cpp | 274 static int PartialIPAddress (const char *in, struct qsockaddr *hostaddr) in PartialIPAddress() argument 316 hostaddr->sa_family = AF_INET; in PartialIPAddress() 317 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress() 318 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); in PartialIPAddress()
|
D | net_bw.cpp | 477 int BW_Connect (int socket, struct qsockaddr *hostaddr) in BW_Connect() argument 678 int BW_GetAddrFromName (char *name, struct qsockaddr *hostaddr) in BW_GetAddrFromName() argument 725 hostaddr->sa_family = AF_INET; in BW_GetAddrFromName() 726 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in BW_GetAddrFromName() 727 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = in BW_GetAddrFromName()
|
D | net_wins.cpp | 324 static int PartialIPAddress (char *in, struct qsockaddr *hostaddr) in PartialIPAddress() argument 366 hostaddr->sa_family = AF_INET; in PartialIPAddress() 367 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress() 368 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); in PartialIPAddress()
|
/external/qemu/slirp-android/ |
D | misc.c | 53 SockAddress hostaddr; in getouraddr() local 57 if (sock_address_init_resolve( &hostaddr, hostname, 0, 0 ) < 0) in getouraddr() 60 our_addr_ip = sock_address_get_ip(&hostaddr); in getouraddr()
|
/external/libppp/src/ |
D | radius.c | 903 struct in_addr hostaddr; in radius_Authenticate() local 1027 hostaddr.s_addr = *(u_long *)hp->h_addr; in radius_Authenticate() 1028 if (rad_put_addr(r->cx.rad, RAD_NAS_IP_ADDRESS, hostaddr) != 0) { in radius_Authenticate() 1104 struct in_addr hostaddr; in radius_Account() local 1212 hostaddr.s_addr = *(u_long *)hp->h_addr; in radius_Account() 1213 if (rad_put_addr(r->cx.rad, RAD_NAS_IP_ADDRESS, hostaddr) != 0) { in radius_Account()
|
/external/mdnsresponder/Clients/ |
D | dns-sd.c | 965 struct sockaddr_storage hostaddr; in RegisterProxyAddressRecord() local 966 getip(ip, &hostaddr); in RegisterProxyAddressRecord() 968 if (hostaddr.ss_family == AF_INET) in RegisterProxyAddressRecord() 970 …kDNSServiceType_A, kDNSServiceClass_IN, 4, &((struct sockaddr_in *)&hostaddr)->sin_addr, 240,… in RegisterProxyAddressRecord() 971 else if (hostaddr.ss_family == AF_INET6) in RegisterProxyAddressRecord() 973 …kDNSServiceType_AAAA, kDNSServiceClass_IN, 16, &((struct sockaddr_in6*)&hostaddr)->sin6_addr, 240,… in RegisterProxyAddressRecord()
|