Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 6 of 6) sorted by relevance

/device/google/cuttlefish/host/commands/assemble_cvd/
Dnetwork_flags.cpp67 auto gateway_s_addr = ntohl(sa->sin_addr.s_addr); in ParseInterfaceAttributes()
73 auto broadcast_s_addr = ntohl(sa->sin_addr.s_addr); in ParseInterfaceAttributes()
87 this->ril_prefixlen = number_of_ones(sa->sin_addr.s_addr); in ParseInterfaceAttributes()
88 auto netmask_s_addr = ntohl(sa->sin_addr.s_addr); in ParseInterfaceAttributes()
93 auto s_addr = network + 1; in ParseInterfaceAttributes() local
95 while (s_addr & ~netmask_s_addr) { in ParseInterfaceAttributes()
96 if (s_addr != gateway_s_addr && s_addr != broadcast_s_addr) { in ParseInterfaceAttributes()
99 ++s_addr; in ParseInterfaceAttributes()
101 if (s_addr == network) { in ParseInterfaceAttributes()
106 addr.s_addr = htonl(s_addr); in ParseInterfaceAttributes()
/device/generic/goldfish/fvpbase/tools/
Dbind_to_localhost.cpp26 if (sin->sin_addr.s_addr != 0) return real_bind(sockfd, addr, addrlen); in bind()
28 new_sin.sin_addr.s_addr = 0x0100007f; in bind()
/device/generic/goldfish/dhcp/common/
Dsocket.cpp106 sockaddr.sin_addr.s_addr = address; in bindIp()
134 addr.sin_addr.s_addr = destinationAddress; in sendOnInterface()
/device/google/cuttlefish/common/libs/fs/
Dshared_fd.cpp557 addr.sin_addr.s_addr = htonl(INADDR_ANY); in SocketLocalClient()
573 addr.sin_addr.s_addr = inet_addr(host.c_str()); in SocketClient()
628 addr.sin_addr.s_addr = htonl(INADDR_ANY); in SocketLocalServer()
/device/generic/car/emulator/Conn/SocketComm/
DSocketComm.cpp82 servAddr.sin_addr.s_addr = INADDR_ANY; in listen()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c575 sin->sin_addr.s_addr = inet_addr(myaddr); in set_Ip_Addr()
579 sin->sin_addr.s_addr = htonl(0xFFFFFFFFu << (32 - (pfxlen ?: 32))); in set_Ip_Addr()