Searched defs:ip (Results 1 - 18 of 18) sorted by relevance

/system/connectivity/shill/
H A Dip_address_store.cc41 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 Ddns_server_tester.cc114 const IPAddress& ip) {
113 DNSClientCallback(const Error& error, const IPAddress& ip) argument
H A Dconnection_health_checker.cc116 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 Dtraffic_monitor_unittest.cc130 string FormatIPPort(const IPAddress& ip, const uint16_t port) { argument
131 return StringPrintf("%s:%d", ip.ToString().c_str(), port);
H A Dconnection_health_checker_unittest.cc567 IPAddress ip = StringToIPv4Address(kProxyIPAddressRemote); local
569 .WillByDefault(Return(ip));
/system/core/libnetutils/
H A Dpacket.c23 #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 Dsample_tree.cpp33 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 Dsample_tree.h32 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 Dthread_tree.cpp178 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 Drecord.h45 uint64_t ip; member in struct:PerfSampleIpType
/system/connectivity/dhcp_client/
H A Ddhcpv4.cc24 #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 Dnetfilter_queue_processor_unittest.cc56 string AddressAndPortToString(uint32_t ip, uint16_t port) { argument
57 return NetfilterQueueProcessor::AddressAndPortToString(ip, port);
H A Dnetfilter_queue_processor.cc22 #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 Dperf_parser.cc156 // 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 Diptables.cc39 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 Devent.h115 u64 ip; member in struct:perf_sample
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
H A Devent.h106 u64 ip; member in struct:perf_sample
/system/core/libbacktrace/
H A DBacktraceOffline.cpp68 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...]

Completed in 171 milliseconds