Home
last modified time | relevance | path

Searched refs:family (Results 1 – 25 of 52) sorted by relevance

123

/system/netd/server/
DSockDiag.cpp108 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, in sendDumpRequest() argument
119 .sdiag_family = family, in sendDumpRequest()
141 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { in sendDumpRequest() argument
145 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
148 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
163 if (res->ai_family == AF_INET && family == AF_INET) { in sendDumpRequest()
167 } else if (res->ai_family == AF_INET && family == AF_INET6) { in sendDumpRequest()
172 } else if (res->ai_family == AF_INET6 && family == AF_INET6) { in sendDumpRequest()
198 family, in sendDumpRequest()
214 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
[all …]
DSockDiag.h66 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);
DRouteControllerTest.cpp46 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()
DXfrmControllerTest.cpp122 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 …]
DNetdConstants.cpp77 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { in parsePrefix() argument
78 if (!prefix || !family || !address || !prefixlen) { in parsePrefix()
145 *family = res[0].ai_family; in parsePrefix()
DFwmarkServer.cpp155 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()
DInterfaceController.h57 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,
DInterfaceController.cpp148 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()
DNetlinkCommands.cpp191 for (const int family : { AF_INET, AF_INET6 }) { in rtNetlinkFlush()
194 .rtm_family = static_cast<uint8_t>(family), in rtNetlinkFlush()
DNetdConstants.h38 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
DRouteController.cpp141 static const char* familyName(uint8_t family) { in familyName() argument
142 switch (family) { in familyName()
333 rule.family = AF_FAMILIES[i]; in modifyIpRule()
338 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family), in modifyIpRule()
373 uint8_t family; in modifyIpRoute() local
375 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute()
413 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute()
423 .rtm_family = family, in modifyIpRoute()
453 if (family == AF_INET6 && IN6_IS_ADDR_LINKLOCAL(reinterpret_cast<in6_addr*>(rawAddress))) { in modifyIpRoute()
DXfrmController.cpp193 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()
872 selector->family = selAddrFamily; in fillXfrmSelector()
1060 usersa->family = record.addrFamily; in fillUserSaInfo()
1076 said->family = record.addrFamily; in fillUserSaId()
1269 tmpl->family = record.addrFamily; in fillUserTemplate()
1491 uint16_t family = statusOrLocalFam.value(); in ipSecAddVirtualTunnelInterface() local
1505 const std::string infoKindValue = (family == AF_INET6) ? INFO_KIND_VTI6 : INFO_KIND_VTI; in ipSecAddVirtualTunnelInterface()
1516 fillNlAttrIpAddress(IFLA_VTI_LOCAL, family, localAddress, &iflaVtiLocal, in ipSecAddVirtualTunnelInterface()
[all …]
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h36 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/
DInternetAddresses.cpp36 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/
Dcommon.h36 family(AF_UNSPEC), in Arguments()
44 sa_family_t family; member
Dcommon.cpp87 family = AF_UNSPEC; in parseArguments()
89 family = AF_INET; in parseArguments()
91 family = AF_INET6; in parseArguments()
Ddnschk.cpp39 .ai_family = args.family, in main()
/system/netd/tests/
Dtun_interface.cpp146 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/
DFwmarkClient.cpp47 bool FwmarkClient::shouldSetFwmark(int family) { in shouldSetFwmark() argument
51 if (!FwmarkCommand::isSupportedFamily(family)) { in shouldSetFwmark()
DNetdClient.cpp102 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()
DFwmarkClient.h29 static bool shouldSetFwmark(int family);
/system/core/liblog/
DREADME.protocol.md32 This payload is used for the `__android_log_buf_write()` family of functions.
43 This payload is used for the `__android_log_bwrite()` family of functions. It is additionally used
/system/core/libsysutils/src/
DNetlinkEvent.cpp375 int family = rtm->rtm_family; in parseRtMessage() local
390 if (!inet_ntop(family, RTA_DATA(rta), dst, sizeof(dst))) in parseRtMessage()
396 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw))) in parseRtMessage()
415 if (family == AF_INET) { in parseRtMessage()
417 } else if (family == AF_INET6) { in parseRtMessage()
/system/hardware/interfaces/net/netd/1.1/
DINetd.hal40 * must be of the same address family as the
63 * must be of the same address family as the
/system/media/camera/docs/
Dhtml.mako23 body { background-color: #f7f7f7; font-family: Roboto, sans-serif;}
57 ….entry_name { color: #333333; padding-left:1.0em; font-size:1.1em; font-family: monospace; vertica…
67 .entry_type_enum_name { font-family: monospace; font-weight: bolder; }
71 .entry_type_enum_value { font-family: monospace; }

123