/system/connectivity/shill/ |
H A D | ip_address_store.cc | 41 void IPAddressStore::AddUnique(const IPAddress& ip) { argument 42 ip_addresses_.insert(ip); 45 void IPAddressStore::Remove(const IPAddress& ip) { argument 46 ip_addresses_.erase(ip); 53 bool IPAddressStore::Contains(const IPAddress& ip) const { 54 return ip_addresses_.find(ip) != ip_addresses_.end();
|
H A D | dns_server_tester.cc | 114 const IPAddress& ip) { 113 DNSClientCallback(const Error& error, const IPAddress& ip) argument
|
H A D | connection_health_checker.cc | 116 IPAddress ip(IPAddress::kFamilyIPv4); 117 ip.SetAddressFromString(ip_string); 118 remote_ips_->AddUnique(ip); 130 void ConnectionHealthChecker::AddRemoteIP(IPAddress ip) { argument 131 remote_ips_->AddUnique(ip); 240 const IPAddress& ip) { 246 remote_ips_->AddUnique(ip); 285 IPAddress ip = remote_ips_->GetRandomIP(); local 287 << ip.ToString(); 288 if (!tcp_connection_->Start(ip, kRemotePor 239 GetDNSResult(const Error& error, const IPAddress& ip) argument [all...] |
H A D | traffic_monitor_unittest.cc | 130 string FormatIPPort(const IPAddress& ip, const uint16_t port) { argument 131 return StringPrintf("%s:%d", ip.ToString().c_str(), port);
|
H A D | connection_health_checker_unittest.cc | 567 IPAddress ip = StringToIPv4Address(kProxyIPAddressRemote); local 569 .WillByDefault(Return(ip));
|
/system/core/libnetutils/ |
H A D | packet.c | 23 #include <netinet/ip.h> 93 struct iphdr ip; local 101 ip.version = IPVERSION; 102 ip.ihl = sizeof(ip) >> 2; 103 ip.tos = 0; 104 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); 105 ip.id = 0; 106 ip 162 struct iphdr ip; member in struct:dhcp_packet [all...] |
/system/extras/simpleperf/ |
H A D | sample_tree.cpp | 33 SampleEntry* SampleTree::AddSample(int pid, int tid, uint64_t ip, uint64_t time, uint64_t period, argument 36 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); 37 const Symbol* symbol = thread_tree_->FindSymbol(map, ip); 39 SampleEntry value(ip, time, period, 0, 1, thread, map, symbol); 62 value.branch_from.ip = from_ip; 73 SampleEntry* SampleTree::AddCallChainSample(int pid, int tid, uint64_t ip, uint64_t time, argument 77 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); 78 const Symbol* symbol = thread_tree_->FindSymbol(map, ip); 80 SampleEntry value(ip, time, 0, period, 0, thread, map, symbol);
|
H A D | sample_tree.h | 32 uint64_t ip; member in struct:BranchFromEntry 37 BranchFromEntry() : ip(0), map(nullptr), symbol(nullptr), flags(0) { 42 uint64_t ip; member in struct:SampleEntry 54 SampleEntry(uint64_t ip, uint64_t time, uint64_t period, uint64_t accumulated_period, argument 57 : ip(ip), 93 SampleEntry* AddSample(int pid, int tid, uint64_t ip, uint64_t time, uint64_t period, 97 SampleEntry* AddCallChainSample(int pid, int tid, uint64_t ip, uint64_t time, uint64_t period,
|
H A D | thread_tree.cpp | 178 const MapEntry* ThreadTree::FindMap(const ThreadEntry* thread, uint64_t ip, bool in_kernel) { argument 181 result = FindMapByAddr(thread->maps, ip); 183 result = FindMapByAddr(kernel_map_tree_, ip); 188 const Symbol* ThreadTree::FindSymbol(const MapEntry* map, uint64_t ip) { argument 191 vaddr_in_file = ip; 193 vaddr_in_file = ip - map->start_addr + map->dso->MinVirtualAddress();
|
H A D | record.h | 45 uint64_t ip; member in struct:PerfSampleIpType
|
/system/connectivity/dhcp_client/ |
H A D | dhcpv4.cc | 24 #include <netinet/ip.h> 236 struct iphdr* ip = reinterpret_cast<struct iphdr*>(buffer); local 237 struct udphdr* udp = reinterpret_cast<struct udphdr*>(buffer + sizeof(*ip)); 250 ip->protocol = IPPROTO_UDP; 252 ip->saddr = htonl(from_); 254 ip->daddr = htonl(to_); 256 ip->tot_len = udp->uh_ulen; 264 ip->version = IPVERSION; 266 ip->ihl = sizeof(*ip) >> 314 const struct iphdr* ip = local [all...] |
/system/connectivity/shill/shims/ |
H A D | netfilter_queue_processor_unittest.cc | 56 string AddressAndPortToString(uint32_t ip, uint16_t port) { argument 57 return NetfilterQueueProcessor::AddressAndPortToString(ip, port);
|
H A D | netfilter_queue_processor.cc | 22 #include <linux/ip.h> 65 std::string NetfilterQueueProcessor::AddressAndPortToString(uint32_t ip, argument 68 addr.s_addr = htonl(ip); 94 struct iphdr ip; local 96 if (payload_len <= sizeof(ip)) { 100 memcpy(&ip, payload, sizeof(ip)); 102 size_t iphdr_len = ip.ihl * kIPHeaderLengthUnitBytes; 103 if (iphdr_len < sizeof(ip) || 104 ip [all...] |
/system/extras/perfprofd/quipper/ |
H A D | perf_parser.cc | 156 // previously-endian-swapped location. This used to log ip. 263 const uint64_t unmapped_event_ip = sample_info.ip; 266 if (!MapIPAndPidAndGetNameAndOffset(sample_info.ip, 268 &sample_info.ip, 274 !MapCallchain(sample_info.ip, 300 bool PerfParser::MapCallchain(const uint64_t ip, argument 327 callchain->ips[j] = ip; 406 uint64_t ip, 420 bool mapped = mapper->GetMappedAddress(ip, &mapped_addr); 423 mapped = mapper->GetMappedAddress(ip, 405 MapIPAndPidAndGetNameAndOffset( uint64_t ip, uint32_t pid, uint64_t* new_ip, ParsedEvent::DSOAndOffset* dso_and_offset) argument [all...] |
/system/firewalld/ |
H A D | iptables.cc | 39 const char kIpPath[] = "/system/bin/ip"; 43 const char kIpPath[] = "/bin/ip"; 430 brillo::ProcessImpl ip; local 431 ip.AddArg(kIpPath); 433 ip.AddArg("-6"); 434 ip.AddArg("rule"); 435 ip.AddArg(add ? "add" : "delete"); 436 ip.AddArg("fwmark"); 437 ip.AddArg(kMarkForUserTraffic); 438 ip [all...] |
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | event.h | 115 u64 ip; member in struct:perf_sample
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
H A D | event.h | 106 u64 ip; member in struct:perf_sample
|
/system/core/libbacktrace/ |
H A D | BacktraceOffline.cpp | 68 static int FindProcInfo(unw_addr_space_t addr_space, unw_word_t ip, unw_proc_info* proc_info, argument 71 bool result = backtrace->FindProcInfo(addr_space, ip, proc_info, need_unwind_info); 227 bool BacktraceOffline::FindProcInfo(unw_addr_space_t addr_space, uint64_t ip, argument 230 FillInMap(ip, &map); 240 uint64_t ip_offset = ip - map.start + map.offset; 247 eh_frame_hdr_space_.start = (ip - ip_vaddr) + debug_frame->eh_frame.eh_frame_hdr_vaddr; 252 eh_frame_space_.start = (ip - ip_vaddr) + debug_frame->eh_frame.eh_frame_vaddr; 266 int ret = dwarf_search_unwind_table(addr_space, ip, &di, proc_info, need_unwind_info, this); 274 int found = dwarf_find_debug_frame(0, &di, ip, segbase, filename.c_str(), map.start, map.end); 276 int ret = dwarf_search_unwind_table(addr_space, ip, [all...] |