Searched refs:family (Results 1 - 25 of 27) sorted by relevance

12

/system/netd/client/
H A DFwmarkClient.h27 // Returns true if a socket of the given |family| should be sent to the fwmark server to have
29 static bool shouldSetFwmark(int family);
33 static bool shouldReportConnectComplete(int family);
H A DFwmarkClient.cpp52 bool FwmarkClient::shouldSetFwmark(int family) { argument
56 return family == AF_INET || family == AF_INET6;
59 bool FwmarkClient::shouldReportConnectComplete(int family) { argument
63 return shouldSetFwmark(family);
H A DNetdClient.cpp60 int family; local
62 family = addr->sa_family;
64 socklen_t familyLen = sizeof(family);
65 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) {
69 if (FwmarkClient::shouldSetFwmark(family)) {
/system/extras/multinetwork/
H A Dcommon.h36 family(AF_UNSPEC),
44 sa_family_t family; member in struct:Arguments
H A Dcommon.cpp60 << " [--family unspec|ipv4|ipv6]"
83 } else if (strEqual(argv[i], "--family")) {
87 family = AF_UNSPEC;
89 family = AF_INET;
91 family = AF_INET6;
H A Ddnschk.cpp39 .ai_family = args.family,
H A Dhttpurl.cpp99 .ai_family = args.family,
/system/netd/server/
H A DSockDiag.h67 int sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states);
68 int sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr);
93 int sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states,
95 int destroySockets(uint8_t proto, int family, const char *addrstr);
H A DRouteControllerTest.cpp46 for (int family : {AF_INET, AF_INET6 }) {
58 rtmsg rtm = { .rtm_family = static_cast<uint8_t>(family) };
69 " in dump for address family " << family;
H A DSockDiag.cpp95 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, argument
106 .sdiag_family = family,
128 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { argument
132 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov));
135 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { argument
152 if (res->ai_family == AF_INET && family == AF_INET) {
156 } else if (res->ai_family == AF_INET && family == AF_INET6) {
161 } else if (res->ai_family == AF_INET6 && family == AF_INET6) {
187 family,
203 return sendDumpRequest(proto, family,
296 destroySockets(uint8_t proto, int family, const char *addrstr) argument
[all...]
H A DInterfaceController.h48 // /proc/sys/net/<family>/<which>/<interface>/<parameter>
50 const char *family, const char *which, const char *interface, const char *parameter,
53 const char *family, const char *which, const char *interface, const char *parameter,
H A DXfrmControllerTest.cpp124 void expectAddressEquals(int family, const std::string& expected, const xfrm_address_t& actual) { argument
127 inet_ntop(family, reinterpret_cast<const void*>(&actual), actualStr, INET6_ADDRSTRLEN);
150 return android::base::StringPrintf("UNKNOWN family type: %d", info.param);
226 const int family = (version == 6) ? AF_INET6 : AF_INET; local
258 EXPECT_EQ(family, userspi.info.sel.family);
259 expectAddressEquals(family, localAddr, userspi.info.saddr);
260 expectAddressEquals(family, remoteAddr, userspi.info.id.daddr);
268 const int family = (version == 6) ? AF_INET6 : AF_INET; local
314 EXPECT_EQ(family, users
470 const int family = (version == 6) ? AF_INET6 : AF_INET; local
498 const int family = (version == 6) ? AF_INET6 : AF_INET; local
534 const int family = (version == 6) ? AF_INET6 : AF_INET; local
[all...]
H A DNetdConstants.cpp85 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument
86 if (!prefix || !family || !address || !prefixlen) {
153 *family = res[0].ai_family;
H A DNetdConstants.h49 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
H A DInterfaceController.cpp144 const char *family, const char *which, const char *interface, const char *parameter) {
145 if (!isAddressFamilyPathComponent(family)) {
155 return StringPrintf("%s/%s/%s/%s/%s", proc_net_path, family, which, interface, parameter);
362 const char *family, const char *which, const char *interface, const char *parameter,
364 const std::string path(getParameterPathname(family, which, interface, parameter));
372 const char *family, const char *which, const char *interface, const char *parameter,
374 const std::string path(getParameterPathname(family, which, interface, parameter));
143 getParameterPathname( const char *family, const char *which, const char *interface, const char *parameter) argument
361 getParameter( const char *family, const char *which, const char *interface, const char *parameter, std::string *value) argument
371 setParameter( const char *family, const char *which, const char *interface, const char *parameter, const char *value) argument
H A DNetlinkCommands.cpp182 for (const int family : { AF_INET, AF_INET6 }) {
185 .rtm_family = static_cast<uint8_t>(family),
H A DRouteController.cpp131 const char *familyName(uint8_t family) { argument
132 switch (family) {
304 rule.family = AF_FAMILIES[i];
309 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family),
344 uint8_t family; local
346 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress),
383 // If a nexthop was specified, parse it as the same family as the prefix.
384 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) {
396 .rtm_family = family,
H A DXfrmController.cpp178 size_t fillNlAttrIpAddress(__u16 nlaType, int family, const std::string& value, nlattr* nlAttr, argument
180 inet_pton(family, value.c_str(), ipAddress.base());
181 return fillNlAttr(nlaType, (family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr), nlAttr);
189 // returns the address family, placing the string in the provided buffer
326 return netdutils::statusFromErrno(EAFNOSUPPORT, "Invalid address family");
623 // Use the addresses to determine the address family and do validation
673 ALOGE("IPV4 socket address family(%d) should match IPV4 Transform "
674 "address family(%d)!",
676 return netdutils::statusFromErrno(EINVAL, "Mismatched address family");
700 return netdutils::statusFromErrno(EAFNOSUPPORT, "Invalid address family");
1250 uint16_t family = statusOrLocalFam.value(); local
[all...]
H A DNetdNativeService.h96 int32_t family, int32_t which, const std::string &ifname, const std::string &parameter,
H A DSockDiagTest.cpp198 inet_diag_msg makeDiagMessage(__u8 family, const sockaddr *src, const sockaddr *dst) { argument
200 .idiag_family = family,
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp76 * Returns the message name for a message in the NETLINK_ROUTE family, or NULL
205 SLOGE("Unknown address family %d\n", ifaddr->ifa_family);
348 int family = rtm->rtm_family; local
363 if (!inet_ntop(family, RTA_DATA(rta), dst, sizeof(dst)))
369 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw)))
387 if (family == AF_INET) {
389 } else if (family == AF_INET6) {
427 // Check address family and packet type.
429 SLOGE("RTM_NEWNDUSEROPT message for unknown family %d\n",
674 // Skip header, padding, and family heade
[all...]
/system/netd/tests/
H A Dbinder_test.cpp264 const std::string& family; member in struct:TestData
283 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage();
288 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage();
292 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage();
786 const int family; member in struct:TestData
806 td.family, td.which, td.ifname, td.parameter,
/system/netd/server/binder/android/net/
H A DINetd.aidl291 * @param family One of IPV4/IPV6 integers, indicating the desired address family directory.
302 void setProcSysNet(int family, int which, in @utf8InCpp String ifname,
/system/extras/simpleperf/scripts/
H A Dreport.py199 font = Font(family='courier', size=12)
/system/media/camera/docs/
H A 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; vertical-align:top; }
67 .entry_type_enum_name { font-family: monospace; font-weight: bolder; }
71 .entry_type_enum_value { font-family: monospace; }

Completed in 6336 milliseconds

12