Home
last modified time | relevance | path

Searched refs:hostaddr (Results 1 – 7 of 7) sorted by relevance

/external/dropbear/
Dloginrec.c316 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 …]
Dloginrec.h144 union login_netinfo hostaddr; /* caller's host address(es) */ member
/external/quake/quake/src/WinQuake/
Dnet_mp.cpp193 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()
Dnet_udp.cpp274 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()
Dnet_bw.cpp477 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()
Dnet_wins.cpp324 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/
Dmisc.c53 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()