Home
last modified time | relevance | path

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

12

/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.cpp51 int PppController::attachPppd(const char *tty, struct in_addr local, in attachPppd()
52 struct in_addr remote, struct in_addr dns1, in attachPppd()
53 struct in_addr dns2) { in attachPppd()
DClatdController.h68 in_addr v4;
85 static in_addr_t selectIpv4Address(const in_addr ip, int16_t prefixlen);
86 static int generateIpv6Address(const char* iface, const in_addr v4, const in6_addr& nat64Prefix,
88 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)};
156 in_addr_t ClatdController::selectIpv4Address(const in_addr ip, int16_t prefixlen) { in selectIpv4Address()
181 void ClatdController::makeChecksumNeutral(in6_addr* v6, const in_addr v4, in makeChecksumNeutral()
204 int ClatdController::generateIpv6Address(const char* iface, const in_addr v4, in generateIpv6Address()
DSockDiag.cpp153 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest()
157 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest()
DInterfaceController.cpp515 struct in_addr addr = {}; in getCfg()
DXfrmController.cpp197 return fillNlAttr(nlaType, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr), nlAttr); in fillNlAttrIpAddress()
1568 {&binaryLocalAddress, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr)}, in ipSecAddVirtualTunnelInterface()
1572 {&binaryRemoteAddress, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr)}, in ipSecAddVirtualTunnelInterface()
DTetherController.cpp310 struct in_addr v4_addr; in startTethering()
DNdcDispatcher.cpp224 struct in_addr addr; in runCommand()
/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;
127 explicit IPAddress(const in_addr& ipv4) in IPAddress()
206 in_addr addr4() const noexcept { return mData.ip.v4; } in addr4()
/system/netd/resolv/
Dres_state_ext.h14 struct in_addr ina;
DDnsProxyListener.cpp226 in_addr** list = (in_addr**) hp->h_addr_list; in extractGetHostByNameAnswers()
336 bool isSpecialUseIPv4Address(const struct in_addr& ia) { in isSpecialUseIPv4Address()
359 if (isSpecialUseIPv4Address(*(struct in_addr*) hp->h_addr_list[i])) return false; in onlyNonSpecialUseIPv4Addresses()
431 struct in_addr iaOriginal = *(struct in_addr*) hp->h_addr_list[i]; in synthesizeNat64PrefixWithARecord()
1164 struct in_addr v4addr = {.s_addr = v6addr.s6_addr32[3]}; in doDns64ReverseLookup()
Dresolv_private.h102 struct in_addr addr;
Dlibnetd_resolv_test.cpp144 {0, sizeof(struct in_addr) /*bad*/, nullptr, nullptr, nullptr, EAI_BADHINTS}, in TEST_F()
Dgethnamaddr.cpp735 (((struct in_addr*) (void*) (*p))->s_addr & res->sort_list[j].mask)) in addrsort()
Dgetaddrinfo.cpp82 {PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in),
Dresolver_test.cpp2838 struct in_addr v4addr; in TEST_F()
/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()
332 ((struct in_addr *)addr)->s_addr |= htonl((1<<(32-prefixlen))-1); in ifc_act_on_address()
531 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route()
532 struct in_addr gw) in ifc_act_on_ipv4_route()
579 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.h133 struct in_addr local4; // The destination IPv4 address
/system/netd/libnetdutils/
DInternetAddresses.cpp38 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.cpp145 in_addr ip4; in addAddress()
/system/core/libsysutils/src/
DNetlinkEvent.cpp189 struct in_addr *addr4 = (struct in_addr *) RTA_DATA(rta); in parseIfAddrMessage()

12