/system/connectivity/shill/net/ |
H A D | ip_address.cc | 54 IPAddress::IPAddress(Family family, const ByteString& address) argument 55 : family_(family) , 59 IPAddress::IPAddress(Family family, argument 62 : family_(family) , 66 IPAddress::IPAddress(Family family) argument 67 : family_(family), 102 size_t IPAddress::GetAddressLength(Family family) { argument 103 switch (family) { 114 size_t IPAddress::GetMaxPrefixLength(Family family) { argument 115 return GetAddressLength(family) * kBitsPerByt 142 GetPrefixLengthFromMask(Family family, const string& mask) argument 164 GetAddressMaskFromPrefix(Family family, size_t prefix) argument 187 GetAddressFamilyName(Family family) argument [all...] |
H A D | ip_address.h | 39 explicit IPAddress(Family family); 45 // structure, depending on the family specified in |address_struct|. |size| 49 IPAddress(Family family, const ByteString& address); 50 IPAddress(Family family, const ByteString& address, unsigned int prefix); 66 // Get the length in bytes of addresses of the given family 67 static size_t GetAddressLength(Family family); 69 // Returns the maximum prefix length for address family |family|, i.e., 71 static size_t GetMaxPrefixLength(Family family); 84 // Returns the prefix length given an address |family| an 96 Family family() const { return family_; } function in class:shill::IPAddress 97 set_family(Family family) argument [all...] |
H A D | ip_address_unittest.cc | 49 void TestAddress(IPAddress::Family family, argument 54 IPAddress good_addr(family); 57 EXPECT_EQ(IPAddress::GetAddressLength(family), good_addr.GetLength()); 58 EXPECT_EQ(family, good_addr.family()); 67 IPAddress good_addr_from_bytes(family, good_bytes); 71 EXPECT_EQ(family, good_addr_from_string.family()); 73 IPAddress bad_addr(family); 79 IPAddress bad_addr_from_bytes(family, bad_byte 216 IPAddress::Family family; member in struct:shill::PrefixMapping 282 IPAddress::Family family; member in struct:shill::BitOperationMapping 342 IPAddress::Family family; member in struct:shill::NetworkPartMapping 402 IPAddress::Family family; member in struct:shill::MinPrefixLengthMapping 437 IPAddress::Family family; member in struct:shill::CanReachAddressMapping [all...] |
/system/netd/client/ |
H A D | FwmarkClient.h | 26 // Returns true if a socket of the given |family| should be sent to the fwmark server to have 28 static bool shouldSetFwmark(int family);
|
H A D | FwmarkClient.cpp | 34 bool FwmarkClient::shouldSetFwmark(int family) { argument 35 return (family == AF_INET || family == AF_INET6) && !getenv("ANDROID_NO_USE_FWMARK_CLIENT");
|
H A D | NetdClient.cpp | 57 int family; local 59 family = addr->sa_family; 61 socklen_t familyLen = sizeof(family); 62 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { 66 if (FwmarkClient::shouldSetFwmark(family)) {
|
/system/connectivity/shill/ |
H A D | arp_packet.cc | 84 IPAddress::Family family = IPAddress::kFamilyUnknown; local 86 family = IPAddress::kFamilyIPv4; 88 family = IPAddress::kFamilyIPv6; 99 size_t ip_address_length = IPAddress::GetAddressLength(family); 124 local_ip_address_ = IPAddress(family, packet.GetSubstring( 128 remote_ip_address_ = IPAddress(family, packet.GetSubstring( 139 if (local_ip_address_.family() != remote_ip_address_.family()) { 144 IPAddress::Family family = local_ip_address_.family(); local [all...] |
H A D | dns_client_factory.cc | 39 IPAddress::Family family, 45 return new DNSClient(family, 38 CreateDNSClient( IPAddress::Family family, const string& interface_name, const vector<string>& dns_servers, int timeout_ms, EventDispatcher* dispatcher, const DNSClient::ClientCallback& callback) argument
|
H A D | async_connection.cc | 55 int family = PF_INET; local 56 if (address.family() == IPAddress::kFamilyIPv6) { 57 family = PF_INET6; 59 fd_ = sockets_->Socket(family, SOCK_STREAM, 0); 131 if (address.family() == IPAddress::kFamilyIPv4) { 142 } else if (address.family() == IPAddress::kFamilyIPv6) {
|
H A D | dns_client_factory.h | 39 IPAddress::Family family,
|
H A D | mock_dns_client_factory.h | 40 DNSClient* (IPAddress::Family family,
|
H A D | mock_routing_table.h | 37 IPAddress::Family family, 48 IPAddress::Family family,
|
H A D | shill_ares.cc | 39 int family, 42 ares_gethostbyname(channel, hostname, family, callback, arg); 37 GetHostByName(ares_channel channel, const char* hostname, int family, ares_host_callback callback, void* arg) argument
|
H A D | routing_table.cc | 117 IPAddress::Family family, 120 bool ret = GetDefaultRouteInternal(interface_index, family, &found_entry); 128 IPAddress::Family family, 131 << " family " << IPAddress::GetAddressFamilyName(family); 140 if (nent.dst.IsDefault() && nent.dst.family() == family) { 163 gateway_address.family(), 179 IPAddress default_address(gateway_address.family()); 295 message.family() 116 GetDefaultRoute(int interface_index, IPAddress::Family family, RoutingTableEntry* entry) argument 127 GetDefaultRouteInternal(int interface_index, IPAddress::Family family, RoutingTableEntry** entry) argument 547 CreateBlackholeRoute(int interface_index, IPAddress::Family family, uint32_t metric, uint8_t table_id) argument [all...] |
H A D | routing_table.h | 79 // Get the default route associated with an interface of a given addr family. 82 IPAddress::Family family, 100 // Create a blackhole route for a given IP family. Returns true 103 IPAddress::Family family, 160 // Get the default route associated with an interface of a given addr family. 163 IPAddress::Family family,
|
/system/extras/tests/net_test/ |
H A D | net_test.py | 103 level = {AF_INET: SOL_IP, AF_INET6: SOL_IPV6}[s.family] 104 option = {AF_INET: IP_TOS, AF_INET6: IPV6_TCLASS}[s.family] 114 def Socket(family, sock_type, protocol): 115 s = socket(family, sock_type, protocol) 120 def PingSocket(family): 121 proto = {AF_INET: IPPROTO_ICMP, AF_INET6: IPPROTO_ICMPV6}[family] 122 return Socket(family, SOCK_DGRAM, proto) 133 def TCPSocket(family): 134 s = Socket(family, SOCK_STREAM, IPPROTO_TCP) 147 def UDPSocket(family) [all...] |
H A D | sock_diag.py | 72 "InetDiagReqV2", "=BBBxIS", "family protocol ext states id", 76 "family state timer retrans id expires rqueue wqueue uid inode", 82 "family prefix_len port") 108 if msg.family == AF_INET or msg.family == AF_INET6: 196 family = AF_INET6 if ":" in addr else AF_INET 197 addr = inet_pton(family, addr) 198 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr 240 for family in [AF_INET, AF_INET6]: 241 diag_req = InetDiagReqV2((family, protoco [all...] |
H A D | csocket.py | 32 SockaddrIn = cstruct.Struct("sockaddr_in", "=HH4sxxxxxxxx", "family port addr") 34 "family port flowinfo addr scope_id") 56 family = socket.AF_INET6 61 addr = socket.inet_pton(family, addr) 62 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo), 65 family = socket.AF_INET 67 addr = socket.inet_pton(family, addr) 68 return SockaddrIn((family, socket.ntohs(port), addr))
|
H A D | iproute.py | 109 "IfinfoMsg", "=BBHiII", "family pad type index flags change") 112 "family dst_len src_len tos table protocol scope type flags") 137 "family prefixlen flags scope index") 157 "family ifindex state flags type") 213 def _NlAttrIPAddress(self, nla_type, family, address): 214 return self._NlAttr(nla_type, socket.inet_pton(family, address)) 238 family: The address family. Used to convert IP addresses into strings. 282 data = socket.inet_ntop(msg.family, nla_data) 286 data = self._ParseAttributes(-RTA_METRICS, msg.family, Non [all...] |
/system/extras/multinetwork/ |
H A D | common.h | 36 family(AF_UNSPEC), 44 sa_family_t family; member in struct:Arguments
|
H A D | common.cpp | 60 << " [--family unspec|ipv4|ipv6]" 83 } else if (strEqual(argv[i], "--family")) { 87 family = AF_UNSPEC; 89 family = AF_INET; 91 family = AF_INET6;
|
/system/netd/server/ |
H A D | InterfaceController.h | 37 // /proc/sys/net/<family>/<which>/<interface>/<parameter> 39 const char *family, const char *which, const char *interface, const char *parameter, 42 const char *family, const char *which, const char *interface, const char *parameter,
|
H A D | SockDiag.h | 51 int sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states); 52 int sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr); 72 int sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states, iovec *iov, int iovcnt); 73 int destroySockets(uint8_t proto, int family, const char *addrstr);
|
H A D | SockDiag.cpp | 92 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states, argument 103 .sdiag_family = family, 124 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { argument 128 return sendDumpRequest(proto, family, states, iov, ARRAY_SIZE(iov)); 131 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { argument 148 if (res->ai_family == AF_INET && family == AF_INET) { 152 } else if (res->ai_family == AF_INET && family == AF_INET6) { 157 } else if (res->ai_family == AF_INET6 && family == AF_INET6) { 183 family, 199 return sendDumpRequest(proto, family, state 287 destroySockets(uint8_t proto, int family, const char *addrstr) argument [all...] |
H A D | InterfaceController.cpp | 97 const char *family, const char *which, const char *interface, const char *parameter) { 98 if (!isAddressFamilyPathComponent(family)) { 108 return StringPrintf("%s/%s/%s/%s/%s", proc_net_path, family, which, interface, parameter); 242 const char *family, const char *which, const char *interface, const char *parameter, 244 const std::string path(getParameterPathname(family, which, interface, parameter)); 252 const char *family, const char *which, const char *interface, const char *parameter, 254 const std::string path(getParameterPathname(family, which, interface, parameter)); 96 getParameterPathname( const char *family, const char *which, const char *interface, const char *parameter) argument 241 getParameter( const char *family, const char *which, const char *interface, const char *parameter, std::string *value) argument 251 setParameter( const char *family, const char *which, const char *interface, const char *parameter, const char *value) argument
|