Searched defs:family (Results 1 - 11 of 11) sorted by relevance

/system/extras/multinetwork/
H A Dcommon.h36 family(AF_UNSPEC),
44 sa_family_t family; member in struct:Arguments
/system/netd/client/
H A DFwmarkClient.cpp43 bool FwmarkClient::shouldSetFwmark(int family) { argument
47 return family == AF_INET || family == AF_INET6;
50 bool FwmarkClient::shouldReportConnectComplete(int family) { argument
54 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/netd/server/
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 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);
385 const char *family, const char *which, const char *interface, const char *parameter,
387 const std::string path(getParameterPathname(family, which, interface, parameter));
395 const char *family, const char *which, const char *interface, const char *parameter,
397 const std::string path(getParameterPathname(family, which, interface, parameter));
143 getParameterPathname( const char *family, const char *which, const char *interface, const char *parameter) argument
384 getParameter( const char *family, const char *which, const char *interface, const char *parameter, std::string *value) argument
394 setParameter( const char *family, const char *which, const char *interface, const char *parameter, const char *value) argument
H A DSockDiag.cpp96 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states, argument
107 .sdiag_family = family,
128 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { argument
132 return sendDumpRequest(proto, family, 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, state
267 destroySockets(uint8_t proto, int family, const char *addrstr) argument
[all...]
H A DNetdNativeService.cpp314 int32_t family, int32_t which, const std::string &ifname, const std::string &parameter,
319 switch (family) {
327 return binder::Status::fromServiceSpecificError(EAFNOSUPPORT, String8("Bad family"));
313 setProcSysNet( int32_t family, int32_t which, const std::string &ifname, const std::string &parameter, const std::string &value) argument
H A DSockDiagTest.cpp198 inet_diag_msg makeDiagMessage(__u8 family, const sockaddr *src, const sockaddr *dst) { argument
200 .idiag_family = family,
H A DRouteController.cpp142 const char *familyName(uint8_t family) { argument
143 switch (family) {
299 rule.family = AF_FAMILIES[i];
304 ALOGE("Error %s %s rule: %s", actionName(action), familyName(rule.family),
339 uint8_t family; local
341 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress),
378 // If a nexthop was specified, parse it as the same family as the prefix.
379 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) {
391 .rtm_family = family,
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp78 * Returns the message name for a message in the NETLINK_ROUTE family, or NULL
201 SLOGE("Unknown address family %d\n", ifaddr->ifa_family);
331 int family = rtm->rtm_family; local
346 if (!inet_ntop(family, RTA_DATA(rta), dst, sizeof(dst)))
352 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw)))
370 if (family == AF_INET) {
372 } else if (family == AF_INET6) {
410 // Check address family and packet type.
412 SLOGE("RTM_NEWNDUSEROPT message for unknown family %d\n",
/system/netd/tests/
H A Dbinder_test.cpp595 const int family; member in struct:TestData
615 td.family, td.which, td.ifname, td.parameter,

Completed in 132 milliseconds