Searched refs:ip (Results 1 - 25 of 45) sorted by relevance

12

/system/connectivity/shill/test-scripts/
H A Dbackchannel34 echo " reach <ip> <gw> [new_iface_name] Route <ip> via gateway <gw>"
38 ip addr show "$1" | awk '/link\/ether/ { print $2 }'
42 ip addr show "$1" | awk '/inet / { print $2 }'
51 ip link set "$old" down
53 ip link set "$new" up
63 ip addr add "$oldip" dev "$test_if"
74 ip="$1" ; shift
79 ip route add "$ip" vi
[all...]
H A Dveth27 ip link add name "$iface" type veth peer name "$peer_iface"
46 ip link del "$iface"
H A Drouting.py82 def matches(self, ip):
83 return (ip & self.netmask) == self.destination
135 ip = convertIpToInt(ip_as_int_or_string)
137 if rr.isUsable() and rr.matches(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/tests/net_test/
H A Dnet_test.sh7 ip link set lo up
8 ip link set lo mtu 16436
9 ip link set eth0 up
H A Dping6_test.sh4 ip link set eth0 up
H A Dpackets.py57 ip = _GetIpLayer(version)
62 ip(src=srcaddr, dst=dstaddr) /
78 ip = _GetIpLayer(version)
82 ip(src=srcaddr, dst=dstaddr) /
88 ip = _GetIpLayer(version)
92 ip(src=srcaddr, dst=dstaddr) /
98 ip = _GetIpLayer(version)
101 ip(src=srcaddr, dst=dstaddr) /
107 ip = _GetIpLayer(version)
114 ip(sr
[all...]
H A Drun_net_test.sh78 if ! ip link list $tap > /dev/null; then
81 sudo ip link set $tap up
/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 Dip_address_store.h47 virtual void AddUnique(const IPAddress& ip);
48 virtual void Remove(const IPAddress& ip);
50 virtual bool Contains(const IPAddress& ip) const;
H A Dmock_ip_address_store.h32 MOCK_METHOD1(AddUnique, void(const IPAddress& ip));
H A Dmock_connection_health_checker.h38 MOCK_METHOD1(AddRemoteIP, void(IPAddress ip));
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 Ddns_server_tester.h86 void DNSClientCallback(const Error& error, const IPAddress& ip);
H A Dconnection_health_checker.h80 virtual void AddRemoteIP(IPAddress ip);
175 void GetDNSResult(const Error& error, const IPAddress& ip);
H A Ddns_server_tester.cc114 const IPAddress& ip) {
113 DNSClientCallback(const Error& error, const IPAddress& ip) argument
/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/extras/simpleperf/
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 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 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 Dthread_tree.h74 const MapEntry* FindMap(const ThreadEntry* thread, uint64_t ip, bool in_kernel);
75 const Symbol* FindSymbol(const MapEntry* map, uint64_t ip);
/system/connectivity/shill/shims/
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/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/
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...]
H A Dperf_parser.h212 bool MapCallchain(const uint64_t ip,
229 uint64_t ip,

Completed in 461 milliseconds

12