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

/system/connectivity/shill/
H A Ddns_client_factory.cc39 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 Darp_packet.cc84 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 Dasync_connection.cc55 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 Dshill_ares.cc39 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 Ddns_client.cc76 DNSClient::DNSClient(IPAddress::Family family, argument
82 : address_(IPAddress(family)),
163 address_.family(), ReceiveDNSReplyCB, this);
243 hostent->h_addrtype == address_.family() &&
245 IPAddress::GetAddressLength(address_.family()) &&
248 address_ = IPAddress(address_.family(),
H A Drouting_table.cc117 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 Dconnection_diagnostics_unittest.cc160 ASSERT_EQ(IPAddress::kFamilyIPv4, kIPv4LocalAddress.family());
161 ASSERT_EQ(IPAddress::kFamilyIPv4, kIPv4ServerAddress.family());
162 ASSERT_EQ(IPAddress::kFamilyIPv4, kIPv4GatewayAddress.family());
163 ASSERT_EQ(IPAddress::kFamilyIPv6, kIPv6ServerAddress.family());
164 ASSERT_EQ(IPAddress::kFamilyIPv6, kIPv6GatewayAddress.family());
362 IPAddress::Family family) {
366 ASSERT_FALSE(family == IPAddress::kFamilyUnknown);
370 .WillOnce(Return(family == IPAddress::kFamilyIPv6));
373 CreateDNSClient(family, kInterfaceName, dns_servers_,
487 address_queried, IPAddress(address_queried.family()), gatewa
361 ExpectResolveTargetServerIPAddressStartSuccess( IPAddress::Family family) argument
[all...]
H A Ddevice_unittest.cc139 MOCK_METHOD3(SetIPFlag, bool(IPAddress::Family family,
159 virtual bool DeviceSetIPFlag(IPAddress::Family family, argument
162 return Device::SetIPFlag(family, flag, value);
H A Dmanager_unittest.cc5164 IPAddress::Family family; member in struct:shill::__anon1407
5183 manager()->FilterPrependDNSServersByFamily(expectation.family);
H A Ddevice.cc970 void Device::PrependDNSServers(const IPAddress::Family family, argument
973 manager_->FilterPrependDNSServersByFamily(family);
1205 bool Device::SetIPFlag(IPAddress::Family family, const string& flag, argument
1208 if (family == IPAddress::kFamilyIPv4) {
1210 } else if (family == IPAddress::kFamilyIPv6) {
/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.cpp34 bool FwmarkClient::shouldSetFwmark(int family) { argument
35 return (family == AF_INET || family == AF_INET6) && !getenv("ANDROID_NO_USE_FWMARK_CLIENT");
H A DNetdClient.cpp57 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/net/
H A Dip_address.h39 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 Dip_address.cc54 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 Dip_address_unittest.cc49 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...]
H A Drtnl_message.cc60 IPAddress::Family family)
67 family_(family) {}
240 // Verify IP family.
54 RTNLMessage(Type type, Mode mode, unsigned int flags, uint32_t seq, uint32_t pid, int interface_index, IPAddress::Family family) argument
H A Drtnl_message.h156 IPAddress::Family family);
173 IPAddress::Family family() const { return family_; } function in class:shill::RTNLMessage
H A Drtnl_message_unittest.cc440 EXPECT_EQ(address.family(), msg.family());
448 IPAddress(address.family(),
455 IPAddress::Family family,
470 EXPECT_EQ(family, msg.family());
480 EXPECT_TRUE(IPAddress(family,
487 EXPECT_TRUE(IPAddress(family,
494 EXPECT_TRUE(IPAddress(family,
550 IPAddress::Family family,
453 TestParseRoute(const ByteString& packet, RTNLMessage::Mode , IPAddress::Family family, int interface_index, const IPAddress& dst, const IPAddress& src, const IPAddress& gateway, unsigned char table, int protocol, unsigned char scope, unsigned char type, int metric) argument
548 TestParseNeighbor(const ByteString& packet, RTNLMessage::Mode mode, IPAddress::Family family, int interface_index, uint16_t state, uint8_t flags, uint8_t type) argument
[all...]
/system/core/libcutils/
H A Dsocket_network_client_unix.c63 int family = addrs[0].ai_family; local
72 int s = socket(family, type, protocol);
/system/netd/server/
H A DNetdConstants.cpp184 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument
185 if (!prefix || !family || !address || !prefixlen) {
252 *family = res[0].ai_family;
H A DSockDiag.cpp94 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states, argument
105 .sdiag_family = family,
126 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { argument
130 return sendDumpRequest(proto, family, states, iov, ARRAY_SIZE(iov));
133 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { argument
150 if (res->ai_family == AF_INET && family == AF_INET) {
154 } else if (res->ai_family == AF_INET && family == AF_INET6) {
159 } else if (res->ai_family == AF_INET6 && family == AF_INET6) {
185 family,
201 return sendDumpRequest(proto, family, state
267 destroySockets(uint8_t proto, int family, const char *addrstr) argument
[all...]
H A DRouteController.cpp337 rule.family = AF_FAMILIES[i];
371 uint8_t family; local
373 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress),
410 // If a nexthop was specified, parse it as the same family as the prefix.
411 if (nexthop && inet_pton(family, nexthop, rawNexthop) <= 0) {
421 .rtm_family = family,
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp81 * Returns the message name for a message in the NETLINK_ROUTE family, or NULL
204 SLOGE("Unknown address family %d\n", ifaddr->ifa_family);
334 int family = rtm->rtm_family; local
349 if (!inet_ntop(family, RTA_DATA(rta), dst, sizeof(dst)))
355 if (!inet_ntop(family, RTA_DATA(rta), gw, sizeof(gw)))
373 if (family == AF_INET) {
375 } else if (family == AF_INET6) {
413 // Check address family and packet type.
415 SLOGE("RTM_NEWNDUSEROPT message for unknown family %d\n",

Completed in 376 milliseconds