Home
last modified time | relevance | path

Searched refs:in_addr (Results 1 – 19 of 19) sorted by relevance

/system/netd/server/
DPppController.h34 int attachPppd(const char *tty, struct in_addr local,
35 struct in_addr remote, struct in_addr dns1,
36 struct in_addr dns2);
DPppController.cpp52 int PppController::attachPppd(const char *tty, struct in_addr local, in attachPppd()
53 struct in_addr remote, struct in_addr dns1, in attachPppd()
54 struct in_addr dns2) { in attachPppd()
DClatdController.h66 in_addr v4;
87 static in_addr_t selectIpv4Address(const in_addr ip, int16_t prefixlen);
88 static int generateIpv6Address(const char* iface, const in_addr v4, const in6_addr& nat64Prefix,
90 static void makeChecksumNeutral(in6_addr* v6, const in_addr v4, const in6_addr& nat64Prefix);
DClatdControllerTest.cpp83 in_addr_t selectIpv4Address(const in_addr a, int16_t b) { in selectIpv4Address()
86 void makeChecksumNeutral(in6_addr* a, const in_addr b, const in6_addr& c) { in makeChecksumNeutral()
92 struct in_addr addr; in TEST_F()
145 in_addr v4 = {inet_addr(kIPv4LocalAddr)}; in TEST_F()
DClatdController.cpp60 static const in_addr kV4Addr = {inet_addr(kV4AddrString)};
149 in_addr_t ClatdController::selectIpv4Address(const in_addr ip, int16_t prefixlen) { in selectIpv4Address()
174 void ClatdController::makeChecksumNeutral(in6_addr* v6, const in_addr v4, in makeChecksumNeutral()
197 int ClatdController::generateIpv6Address(const char* iface, const in_addr v4, in generateIpv6Address()
DSockDiag.cpp154 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest()
158 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest()
DInterfaceController.cpp510 struct in_addr addr = {}; in getCfg()
DXfrmController.cpp196 return fillNlAttr(nlaType, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr), nlAttr); in fillNlAttrIpAddress()
1566 {&binaryLocalAddress, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr)}, in ipSecAddVirtualTunnelInterface()
1570 {&binaryRemoteAddress, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr)}, in ipSecAddVirtualTunnelInterface()
DNdcDispatcher.cpp224 struct in_addr addr; in runCommand()
DTetherController.cpp354 struct in_addr v4_addr; in startTethering()
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h41 in_addr v4;
58 const in_addr v4a = a.ip.v4;
59 const in_addr v4b = b.ip.v4;
81 const in_addr v4a = a.ip.v4;
82 const in_addr v4b = b.ip.v4;
137 explicit IPAddress(const in_addr& ipv4) in IPAddress()
221 in_addr addr4() const noexcept { return mData.ip.v4; } in addr4()
/system/core/libnetutils/
Difc_utils.c93 struct in_addr in_addr; in ipaddr_to_string() local
95 in_addr.s_addr = addr; in ipaddr_to_string()
96 return inet_ntoa(in_addr); in ipaddr_to_string()
331 ((struct in_addr *)addr)->s_addr |= htonl((1<<(32-prefixlen))-1); in ifc_act_on_address()
533 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route()
534 struct in_addr gw) in ifc_act_on_ipv4_route()
581 struct in_addr in_dst, in_gw; in ifc_create_default_route()
Ddhcpclient.c88 struct in_addr in_addr; in ipaddr() local
90 in_addr.s_addr = addr; in ipaddr()
91 return inet_ntoa(in_addr); in ipaddr()
/system/netd/libnetdbpf/include/netdbpf/
Dbpf_shared.h166 struct in_addr local4; // The destination IPv4 address
179 struct in_addr local4; // The source IPv4 address
/system/netd/libnetdutils/
DInternetAddresses.cpp40 const in_addr v4 = mData.ip.v4; in toString()
DInternetAddressesTest.cpp82 const in_addr IPV4_ANY{htonl(INADDR_ANY)};
83 const in_addr IPV4_LOOPBACK{htonl(INADDR_LOOPBACK)};
84 const in_addr IPV4_ONES{~0U};
/system/netd/tests/
Dtun_interface.cpp149 in_addr ip4; in addAddress()
Dbinder_test.cpp2157 IPAddress addr(*(in_addr*)msg->id.idiag_src); in findDnsSockets()
2258 in_addr loopback = {htonl(INADDR_LOOPBACK)}; in TEST_F()
2658 struct in_addr addr = {}; in getInterfaceIPv4Addr()
/system/core/libsysutils/src/
DNetlinkEvent.cpp211 struct in_addr *addr4 = (struct in_addr *) RTA_DATA(rta); in parseIfAddrMessage()