Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Dnet_test.py90 level = {AF_INET: SOL_IP, AF_INET6: SOL_IPV6}[s.family]
91 option = {AF_INET: IP_TOS, AF_INET6: IPV6_TCLASS}[s.family]
101 def Socket(family, sock_type, protocol): argument
102 s = socket(family, sock_type, protocol)
107 def PingSocket(family): argument
108 proto = {AF_INET: IPPROTO_ICMP, AF_INET6: IPPROTO_ICMPV6}[family]
109 return Socket(family, SOCK_DGRAM, proto)
120 def TCPSocket(family): argument
121 s = Socket(family, SOCK_STREAM, IPPROTO_TCP)
134 def UDPSocket(family): argument
[all …]
Diproute.py226 def _NlAttrIPAddress(self, nla_type, family, address): argument
227 return self._NlAttr(nla_type, socket.inet_pton(family, address))
242 def _Decode(self, command, family, nla_type, nla_data): argument
305 data = socket.inet_ntop(family, nla_data)
309 data = self._ParseAttributes(-RTA_METRICS, family, nla_data)
321 def _ParseAttributes(self, command, family, data): argument
349 nla_name, nla_data = self._Decode(command, family, nla.nla_type, nla_data)
437 family = self._AddressFamily(version)
438 rtmsg = RTMsg((family, 0, 0, 0, RT_TABLE_UNSPEC,
451 family = self._AddressFamily(version)
[all …]
Dcsocket.py55 family = socket.AF_INET6
60 addr = socket.inet_pton(family, addr)
61 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo),
64 family = socket.AF_INET
66 addr = socket.inet_pton(family, addr)
67 return SockaddrIn((family, socket.ntohs(port), addr))
Dping6_test.py213 family = s.family
222 family = AF_INET
227 if family == AF_INET:
229 elif family == AF_INET6:
232 self.fail("Unknown socket address family %d" * s.family)
235 if family == AF_INET:
526 sockaddr.family = AF_UNSPEC
532 sockaddr.family = AF_UNSPEC
538 sockaddr.family = AF_UNSPEC
Dmultinetwork_base.py91 family = {4: AF_INET, 6: AF_INET6}[version]
95 addr = inet_pton(family, addr)
413 if s.family == AF_INET6:
435 family = self.GetProtocolFamily(version)
436 s = constructor(family)
Dsrcaddr_selection_test.py73 self.assertEquals(AF_INET6 if ":" in address else AF_INET, ifa_msg.family)
Dmultinetwork_test.py502 family = self.GetProtocolFamily(version)
503 s = net_test.UDPSocket(family)
634 if s.family == AF_INET:
/system/netd/client/
DFwmarkClient.cpp34 bool FwmarkClient::shouldSetFwmark(int family) { in shouldSetFwmark() argument
35 return (family == AF_INET || family == AF_INET6) && !getenv("ANDROID_NO_USE_FWMARK_CLIENT"); in shouldSetFwmark()
DNetdClient.cpp57 int family; in netdClientAccept4() local
59 family = addr->sa_family; in netdClientAccept4()
61 socklen_t familyLen = sizeof(family); in netdClientAccept4()
62 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4()
66 if (FwmarkClient::shouldSetFwmark(family)) { in netdClientAccept4()
DFwmarkClient.h28 static bool shouldSetFwmark(int family);
/system/netd/server/
DNetdConstants.cpp145 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { in parsePrefix() argument
146 if (!prefix || !family || !address || !prefixlen) { in parsePrefix()
213 *family = res[0].ai_family; in parsePrefix()
DNetdConstants.h39 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
DRouteController.cpp329 rule.family = AF_FAMILIES[i]; in modifyIpRule()
356 uint8_t family; in modifyIpRoute() local
358 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute()
396 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) { in modifyIpRoute()
406 .rtm_family = family, in modifyIpRoute()
/system/core/libsysutils/src/
DNetlinkEvent.cpp336 int family = rtm->rtm_family; in parseRtMessage() local
351 if (!inet_ntop(family, RTA_DATA(rta), dst, sizeof(dst))) in parseRtMessage()
357 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw))) in parseRtMessage()
375 if (family == AF_INET) { in parseRtMessage()
377 } else if (family == AF_INET6) { in parseRtMessage()
/system/media/camera/docs/
Dhtml.mako23 body { background-color: #f7f7f7; font-family: Roboto, sans-serif;}
56 ….entry_name { color: #333333; padding-left:1.0em; font-size:1.1em; font-family: monospace; vertica…
66 .entry_type_enum_name { font-family: monospace; font-weight: bolder; }
70 .entry_type_enum_value { font-family: monospace; }