/system/netd/server/ |
D | SockDiag.cpp | 110 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, in sendDumpRequest() argument 121 .sdiag_family = family, in sendDumpRequest() 143 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { in sendDumpRequest() argument 147 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest() 150 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument 165 if (res->ai_family == AF_INET && family == AF_INET) { in sendDumpRequest() 169 } else if (res->ai_family == AF_INET && family == AF_INET6) { in sendDumpRequest() 174 } else if (res->ai_family == AF_INET6 && family == AF_INET6) { in sendDumpRequest() 200 family, in sendDumpRequest() 216 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest() [all …]
|
D | SockDiag.h | 66 int sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states); 67 int sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr); 92 int sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, 94 int destroySockets(uint8_t proto, int family, const char* addrstr, int ifindex);
|
D | RouteControllerTest.cpp | 46 for (int family : {AF_INET, AF_INET6 }) { in TEST_F() 58 rtmsg rtm = { .rtm_family = static_cast<uint8_t>(family) }; in TEST_F() 69 " in dump for address family " << family; in TEST_F()
|
D | XfrmControllerTest.cpp | 122 void expectAddressEquals(int family, const std::string& expected, const xfrm_address_t& actual) { in expectAddressEquals() argument 125 inet_ntop(family, reinterpret_cast<const void*>(&actual), actualStr, INET6_ADDRSTRLEN); in expectAddressEquals() 258 const int family = (version == 6) ? AF_INET6 : AF_INET; in TEST_P() local 291 EXPECT_EQ(AF_UNSPEC, userspi.info.sel.family); in TEST_P() 292 expectAddressEquals(family, localAddr, userspi.info.saddr); in TEST_P() 293 expectAddressEquals(family, remoteAddr, userspi.info.id.daddr); in TEST_P() 316 const int family = (version == 6) ? AF_INET6 : AF_INET; in testIpSecAddSecurityAssociation() local 372 EXPECT_EQ(family, usersa.family); in testIpSecAddSecurityAssociation() 385 expectAddressEquals(family, localAddr, usersa.saddr); in testIpSecAddSecurityAssociation() 386 expectAddressEquals(family, remoteAddr, usersa.id.daddr); in testIpSecAddSecurityAssociation() [all …]
|
D | NetdConstants.cpp | 78 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { in parsePrefix() argument 79 if (!prefix || !family || !address || !prefixlen) { in parsePrefix() 146 *family = res[0].ai_family; in parsePrefix()
|
D | FwmarkServer.cpp | 155 int family; in processClient() local 156 socklen_t familyLen = sizeof(family); in processClient() 157 if (getsockopt(*socketFd, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in processClient() 160 if (!FwmarkCommand::isSupportedFamily(family)) { in processClient()
|
D | InterfaceController.h | 57 static int getParameter(const char* family, const char* which, const char* ifName, 59 static int setParameter(const char* family, const char* which, const char* ifName,
|
D | InterfaceController.cpp | 148 const char *family, const char *which, const char *interface, const char *parameter) { in getParameterPathname() argument 149 if (!isAddressFamilyPathComponent(family)) { in getParameterPathname() 159 return StringPrintf("%s/%s/%s/%s/%s", proc_net_path, family, which, interface, parameter); in getParameterPathname() 385 const char *family, const char *which, const char *interface, const char *parameter, in getParameter() argument 387 const std::string path(getParameterPathname(family, which, interface, parameter)); in getParameter() 399 const char *family, const char *which, const char *interface, const char *parameter, in setParameter() argument 401 const std::string path(getParameterPathname(family, which, interface, parameter)); in setParameter()
|
D | NetlinkCommands.cpp | 191 for (const int family : { AF_INET, AF_INET6 }) { in rtNetlinkFlush() 194 .rtm_family = static_cast<uint8_t>(family), in rtNetlinkFlush()
|
D | NetdConstants.h | 38 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
|
D | RouteController.cpp | 124 static const char* familyName(uint8_t family) { in familyName() argument 125 switch (family) { in familyName() 318 rule.family = AF_FAMILIES[i]; in modifyIpRule() 323 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family), in modifyIpRule() 358 uint8_t family; in modifyIpRoute() local 360 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute() 398 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute() 408 .rtm_family = family, in modifyIpRoute() 438 if (family == AF_INET6 && IN6_IS_ADDR_LINKLOCAL(reinterpret_cast<in6_addr*>(rawAddress))) { in modifyIpRoute()
|
D | XfrmController.cpp | 193 size_t fillNlAttrIpAddress(__u16 nlaType, int family, const std::string& value, nlattr* nlAttr, in fillNlAttrIpAddress() argument 195 inet_pton(family, value.c_str(), ipAddress.base()); in fillNlAttrIpAddress() 196 return fillNlAttr(nlaType, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr), nlAttr); in fillNlAttrIpAddress() 936 selector->family = selAddrFamily; in fillXfrmSelector() 1124 usersa->family = record.addrFamily; in fillUserSaInfo() 1140 said->family = record.addrFamily; in fillUserSaId() 1348 tmpl->family = record.addrFamily; in fillUserTemplate() 1593 uint16_t family = statusOrLocalFam.value(); in ipSecAddVirtualTunnelInterface() local 1607 const std::string infoKindValue = (family == AF_INET6) ? INFO_KIND_VTI6 : INFO_KIND_VTI; in ipSecAddVirtualTunnelInterface() 1618 fillNlAttrIpAddress(IFLA_VTI_LOCAL, family, localAddress, &iflaVtiLocal, in ipSecAddVirtualTunnelInterface() [all …]
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 36 uint8_t family{AF_UNSPEC}; 48 if ((a.family != b.family) || (a.cidrlen != b.cidrlen) || (a.port != b.port) || 52 switch (a.family) { 78 if (a.family != b.family) return (a.family < b.family); 79 switch (a.family) { 149 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress() 155 constexpr sa_family_t family() const noexcept { return mData.family; } in family() function 177 switch (mData.family) { in IPAddress() 219 constexpr sa_family_t family() const noexcept { return mData.family; } in family() function 281 constexpr sa_family_t family() const noexcept { return mData.family; } in family() function [all …]
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 36 switch (mData.family) { in toString() 53 if (mData.family == AF_INET6 && mData.scope_id > 0) { in toString() 97 switch (mData.family) { in IPPrefix() 143 uint8_t maxlen = (ip.family() == AF_INET) ? 32 : 128; in forString() 155 switch (mData.family) { in toString()
|
/system/extras/multinetwork/ |
D | common.h | 37 family(AF_UNSPEC), in Arguments() 47 sa_family_t family; member
|
D | common.cpp | 85 family = AF_UNSPEC; in parseArguments() 87 family = AF_INET; in parseArguments() 89 family = AF_INET6; in parseArguments()
|
D | dnschk.cpp | 40 .ai_family = args.family, in main()
|
/system/netd/tests/ |
D | tun_interface.cpp | 146 int family; in addAddress() local 153 family = AF_INET6; in addAddress() 157 family = AF_INET; in addAddress() 173 if (ifaddr->ifa_family != family) continue; in addAddress()
|
/system/netd/client/ |
D | FwmarkClient.cpp | 47 bool FwmarkClient::shouldSetFwmark(int family) { in shouldSetFwmark() argument 51 if (!FwmarkCommand::isSupportedFamily(family)) { in shouldSetFwmark()
|
D | NetdClient.cpp | 102 int family; in checkSocket() local 103 socklen_t familyLen = sizeof(family); in checkSocket() 104 if (getsockopt(socketFd, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in checkSocket() 107 if (!FwmarkClient::shouldSetFwmark(family)) { in checkSocket() 131 int family; in netdClientAccept4() local 133 family = addr->sa_family; in netdClientAccept4() 135 socklen_t familyLen = sizeof(family); in netdClientAccept4() 136 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4() 140 if (FwmarkClient::shouldSetFwmark(family)) { in netdClientAccept4()
|
D | FwmarkClient.h | 29 static bool shouldSetFwmark(int family);
|
/system/logging/liblog/ |
D | README.protocol.md | 75 This payload is used for the `__android_log_buf_write()` family of functions. 86 This payload is used for the `__android_log_bwrite()` family of functions. It is additionally used
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 373 int family = rtm->rtm_family; in parseRtMessage() local 388 if (!inet_ntop(family, RTA_DATA(rta), dst, sizeof(dst))) in parseRtMessage() 394 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw))) in parseRtMessage() 413 if (family == AF_INET) { in parseRtMessage() 415 } else if (family == AF_INET6) { in parseRtMessage()
|
/system/hardware/interfaces/net/netd/1.1/ |
D | INetd.hal | 40 * must be of the same address family as the 63 * must be of the same address family as the
|
/system/extras/simpleperf/scripts/purgatorio/templates/ |
D | styles.css | 18 font-family: sans-serif;
|