Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 653) sorted by relevance

12345678910>>...27

/external/dhcpcd-6.8.2/dhcpcd-hooks/
D30-hostname1 # Set the hostname from DHCP data if required
3 # A hostname can either be a short hostname or a FQDN.
9 # This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network
10 # where the DHCPv4 hostname is short and the DHCPv6 has an FQDN.
11 # DHCPv6 has no hostname option.
12 # RFC4702 section 3.1 says FQDN should be prefered over hostname.
14 # As such, the default is hostname_fqdn=true so that a consistent hostname
18 # Some systems don't have hostname(1)
24 if type hostname >/dev/null 2>&1; then
25 hostname
[all …]
/external/autotest/site_utils/
Dserver_manager_utils.py47 hostname=exclude_server.hostname)
52 (role, exclude_server.hostname, role))
56 def get_servers(hostname=None, role=None, status=None): argument
66 if hostname:
67 filters['hostname'] = hostname
130 {'hostname':server.hostname,
143 result += '%s(%s), ' % (server.hostname, server.status)
145 servers_without_role = [s.hostname for s in servers
152 def check_server(hostname, role): argument
167 infra.execute_command(hostname, 'true')
[all …]
Dserver_manager.py56 'Server %s already has role %s.' % (server.hostname, role))
59 if not server_manager_utils.check_server(server.hostname, role):
61 'Server %s is not ready for role %s.' % (server.hostname, role))
70 (role, servers[0].hostname, role))
78 print 'Role %s is added to server %s.' % (role, server.hostname)
94 'Server %s does not have role %s.' % (server.hostname, role))
104 print 'Deleting role %s from server %s...' % (role, server.hostname)
117 % server.hostname)
121 print 'Role %s is deleted from server %s.' % (role, server.hostname)
138 (server.hostname, status))
[all …]
Dhost_history_utils.py92 def find_most_recent_entry_before(t, type_str, hostname, fields): argument
106 ('hostname', hostname)],
138 hostname = input['hostname']
141 t=t_start, type_str=_LOCK_HISTORY_TYPE, hostname=hostname,
147 t=t_start, type_str=_HOST_HISTORY_TYPE, hostname=hostname,
159 ('hostname', hostname)],
176 % hostname)
200 return hostname, intervals_of_statuses, num_entries_found
279 def get_intervals_for_host(t_start, t_end, hostname): argument
298 ('hostname', hostname)],
[all …]
Dadd_detected_host_labels.py40 def add_missing_labels(afe, hostname): argument
53 host = hosts.create_host(hostname)
57 '%s. Skipping.', hostname)
61 hostname)
67 afe_host = afe.get_hosts(hostname=hostname)[0]
84 afe_label.remove_hosts(hosts=[hostname])
85 label.add_hosts(hosts=[hostname])
92 'Skipping unknown label.', label, hostname)
/external/nist-sip/java/gov/nist/core/
DHost.java74 protected String hostname; field in Host
124 if (addressType == IPV6ADDRESS && !isIPv6Reference(hostname)) { in encode()
125 buffer.append('[').append(hostname).append(']'); in encode()
127 buffer.append(hostname); in encode()
145 return otherHost.hostname.equals(hostname); in equals()
153 return hostname; in getHostname()
160 return hostname; in getAddress()
170 if (hostname == null) in getIpAddress()
175 inetAddress = InetAddress.getByName(hostname); in getIpAddress()
181 rawIpAddress = hostname; in getIpAddress()
[all …]
/external/curl/lib/
Dhostcheck.c60 static int hostmatch(char *hostname, char *pattern) in hostmatch() argument
71 size_t len = strlen(hostname); in hostmatch()
72 if(hostname[len-1]=='.') in hostmatch()
73 hostname[len-1]=0; in hostmatch()
80 return Curl_raw_equal(pattern, hostname) ? in hostmatch()
84 if(Curl_inet_pton(AF_INET, hostname, &ignored) > 0) in hostmatch()
87 else if(Curl_inet_pton(AF_INET6, hostname, &si6.sin6_addr) > 0) in hostmatch()
101 return Curl_raw_equal(pattern, hostname) ? in hostmatch()
104 hostname_label_end = strchr(hostname, '.'); in hostmatch()
112 if(hostname_label_end - hostname < pattern_label_end - pattern) in hostmatch()
[all …]
Dasyn-thread.c150 const char *hostname, int port,
159 char * hostname; /* hostname to resolve, Curl_async.hostname member
193 free(tsd->hostname); in destroy_thread_sync_data()
204 const char * hostname, in init_thread_sync_data() argument
232 tsd->hostname = strdup(hostname); in init_thread_sync_data()
233 if(!tsd->hostname) in init_thread_sync_data()
276 rc = Curl_getaddrinfo_ex(tsd->hostname, service, &tsd->hints, &tsd->res); in getaddrinfo_thread()
309 tsd->res = Curl_ipv4_resolve_r(tsd->hostname, tsd->port); in gethostbyname_thread()
366 free(async->hostname); in destroy_async_data()
367 async->hostname = NULL; in destroy_async_data()
[all …]
Dhostip4.c92 const char *hostname, in Curl_getaddrinfo() argument
104 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo()
106 infof(conn->data, "Curl_ipv4_resolve_r failed for %s\n", hostname); in Curl_getaddrinfo()
122 Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, argument
133 if(Curl_inet_pton(AF_INET, hostname, &in) > 0)
135 return Curl_ip2addr(AF_INET, &in, hostname, port);
151 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai);
173 h = gethostbyname_r(hostname,
192 (void)gethostbyname_r(hostname,
259 res = gethostbyname_r(hostname,
[all …]
/external/autotest/scheduler/
Ddrones.py39 self.hostname = None
92 logging.info("Running drone_utility on %s", self.hostname)
105 self.hostname.replace('.', '_'), len(calls))
108 subject = 'Warning from drone %s' % self.hostname
192 self.hostname = 'localhost'
199 if drone.hostname == self.hostname:
203 self.queue_call('send_file_to', drone.hostname, source_path,
208 def __init__(self, hostname, timestamp_remote_calls=True): argument
211 self.hostname = hostname
212 self._host = drone_utility.create_host(hostname)
[all …]
Ddrone_manager.py63 def __init__(self, hostname, pid, ppid=None): argument
64 self.hostname = hostname
69 return (self.hostname, self.pid)
73 return '%s/%s' % (self.hostname, self.pid)
201 for hostname in drone_hostnames:
202 self._add_drone(hostname)
244 def _add_drone(self, hostname): argument
245 logging.info('Adding drone %s', hostname)
246 drone = drones.get_drone(hostname)
248 self._drones[drone.hostname] = drone
[all …]
Drdb_hosts_unittest.py80 hostname = 'h1'
82 self.db_helper.create_host(hostname))
84 host = self.db_helper.get_host(hostname=hostname)[0]
116 hostname = 'h1'
117 db_host = self.db_helper.create_host(hostname, leased=True)
121 host_data = {'hostname': hostname, 'id': db_host.id}
139 self.db_helper.get_host(hostname=hostname)[0]).wire_format()
150 hostname = 'h1'
151 db_host = self.db_helper.create_host(hostname, dirty=False)
160 self.db_helper.get_host(hostname=hostname)[0].dirty == True and
[all …]
/external/apache-http/src/org/apache/http/
DHttpHost.java61 protected final String hostname; field in HttpHost
85 public HttpHost(final String hostname, int port, final String scheme) { in HttpHost() argument
87 if (hostname == null) { in HttpHost()
90 this.hostname = hostname; in HttpHost()
91 this.lcHostname = hostname.toLowerCase(Locale.ENGLISH); in HttpHost()
107 public HttpHost(final String hostname, int port) { in HttpHost() argument
108 this(hostname, port, null); in HttpHost()
116 public HttpHost(final String hostname) { in HttpHost() argument
117 this(hostname, -1, null); in HttpHost()
126 this(httphost.hostname, httphost.port, httphost.schemeName); in HttpHost()
[all …]
/external/autotest/server/hosts/
Dfactory.py58 def _detect_host(connectivity_class, hostname, **args): argument
77 with closing(connectivity_class(hostname, **args)) as host:
87 def _choose_connectivity_class(hostname, ssh_port): argument
95 if (hostname == 'localhost' and ssh_port == DEFAULT_SSH_PORT):
135 hostname, host_attributes = server_utils.get_host_info_from_machine(
141 hostname, args['user'], args['password'], ssh_port = \
142 server_utils.parse_machine(hostname, ssh_user, ssh_pass, ssh_port)
148 connectivity_class = _choose_connectivity_class(hostname, ssh_port)
154 classes = [_detect_host(connectivity_class, hostname, **args),
158 host_class = type("%s_host" % hostname, tuple(classes), {})
[all …]
Dteststation_host.py22 def create_teststationhost(hostname, **kwargs): argument
31 if hostname == 'localhost':
36 return host_class(hostname, **kwargs)
43 def check_credentials(self, hostname): argument
48 if hostname != 'localhost':
57 def _initialize(self, hostname='localhost', *args, **dargs): argument
66 hostname)
69 super(TestStationHost, self)._initialize(hostname=hostname, *args,
72 self.check_credentials(hostname)
Dservo_host.py115 super(ServoHost, self)._initialize(hostname=servo_host,
118 self._is_in_lab = utils.host_is_in_lab_zone(self.hostname)
121 self._is_localhost = (self.hostname == 'localhost')
122 remote = 'http://%s:%s' % (self.hostname, servo_port)
348 'information about the host.', self.hostname)
352 (self.hostname, e))
379 (self.hostname, e))
421 'the host.', self.hostname)
426 self.hostname)
438 ds = dev_server.ImageServer.resolve(self.hostname)
[all …]
/external/autotest/server/
Dprofilers.py68 if host.hostname not in self.job.machines:
75 in_use_hosts.add(host.hostname)
82 profiler_hosts.add(host.hostname)
86 host.hostname, profiler_dir)
88 del self.installed_hosts[host.hostname]
93 for hostname in in_use_hosts - profiler_hosts:
94 host = hosts.create_host(hostname)
98 self.installed_hosts[host.hostname] = (host, at, tmp_dir)
102 hosts_to_drop = [self.installed_hosts[hostname][0]
103 for hostname in hostnames_to_drop]
[all …]
Dsite_utils.py88 def get_labels_from_afe(hostname, label_prefix, afe): argument
103 host__hostname__in=[hostname])
108 def get_label_from_afe(hostname, label_prefix, afe): argument
121 labels = get_labels_from_afe(hostname, label_prefix, afe)
126 def get_board_from_afe(hostname, afe): argument
138 return get_label_from_afe(hostname, constants.BOARD_PREFIX, afe)
141 def get_build_from_afe(hostname, afe): argument
152 return get_label_from_afe(hostname, constants.VERSION_PREFIX, afe)
323 if lock_manager.lock([host.hostname]):
325 host.hostname, labels)
[all …]
/external/autotest/client/tests/kvm/deps/
Dheartbeat_slu.py90 return "%s %06d %.2f" % (hostname, seq, float(time.time()))
93 hostname, seq, timestamp = heartbeat.rsplit()
95 if client_prev_timestamp.has_key(hostname):
96 delta = local_timestamp - client_prev_timestamp[hostname]
99 % (float(time.time()), hostname, delta)
101 client_prev_timestamp[hostname] = local_timestamp
104 if not client_clock_offset.has_key(hostname):
105 client_clock_offset[hostname] = timestamp - local_timestamp
106 client_prev_drift[hostname] = 0
107 drift = timestamp - local_timestamp - client_clock_offset[hostname]
[all …]
/external/autotest/cli/contrib/
Dwhy_isnt_my_job_running.py132 for hostname in acl['hosts']:
133 hostname_to_acl_name_list.setdefault(hostname, []).append(
144 for hostname in acl_excluded_hostnames:
145 acls = ','.join(hostname_to_acl_name_list[hostname])
146 host_exclude_reasons.setdefault(hostname, []).append(
160 hostname = host['hostname'] variable
165 'get_host_queue_entries', host__hostname=hostname,
171 host_exclude_reasons.setdefault(hostname, []).append(message)
189 for hostname in sorted(hosts_reasons.keys()):
190 for reason in hosts_reasons[hostname]:
[all …]
/external/autotest/cli/
Dserver.py85 if ((not self.hostname and self.hostname_required) or
86 len(self.hostname) > 1):
89 if self.hostname:
91 self.hostname = self.hostname[0]
161 return server_manager_utils.get_servers(hostname=self.hostname,
167 item=self.hostname, fatal=True)
179 item=self.hostname, fatal=True)
218 return server_manager.create(hostname=self.hostname, role=self.role,
223 item=self.hostname, fatal=True)
233 print 'Server %s is added to server database:\n' % self.hostname
[all …]
/external/autotest/server/cros/dynamic_suite/
Dfakes.py45 def __init__(self, hostname='', status='Ready', locked=False, locked_by=''): argument
46 self.hostname = hostname
54 self.hostname, self.status,
74 hostname=None, subdir='fake_Test.tag.subdir_tag', argument
79 self.hostname = hostname if hostname else 'hostless'
87 if hostname:
88 self.entry['host'] = {'hostname': hostname}
93 self.hostname)
111 self.hostname in status._test_name and
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCertificatePinner.java150 public void check(String hostname, List<Certificate> peerCertificates) in check() argument
153 Set<ByteString> pins = findMatchingPins(hostname); in check()
171 message.append("\n Pinned certificates for ").append(hostname).append(":"); in check()
179 public void check(String hostname, Certificate... peerCertificates) in check() argument
181 check(hostname, Arrays.asList(peerCertificates)); in check()
188 Set<ByteString> findMatchingPins(String hostname) { in findMatchingPins() argument
189 Set<ByteString> directPins = hostnameToPins.get(hostname); in findMatchingPins()
192 int indexOfFirstDot = hostname.indexOf('.'); in findMatchingPins()
193 int indexOfLastDot = hostname.lastIndexOf('.'); in findMatchingPins()
200 wildcardPins = hostnameToPins.get("*." + hostname.substring(indexOfFirstDot + 1)); in findMatchingPins()
[all …]
/external/selinux/sepolgen/tests/
Daudit.txt33 …em_r:unconfined_t:s0 msg='PAM: setcred acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin…
34 …unconfined_t:s0 msg='PAM: session open acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin…
35 …nconfined_t:s0 msg='PAM: session close acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin…
36 …t:s0-s0:c0.c255 msg='PAM: accounting acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin…
38 …s0-s0:c0.c255 msg='PAM: session open acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin…
39 …nd_t:s0-s0:c0.c255 msg='PAM: setcred acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin…
40 …nd_t:s0-s0:c0.c255 msg='PAM: setcred acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin…
41 …0-s0:c0.c255 msg='PAM: session close acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin…
42 …em_r:unconfined_t:s0 msg='PAM: setcred acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin…
43 …unconfined_t:s0 msg='PAM: session open acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin…
[all …]
/external/avahi/avahi-sharp/
DHostNameResolver.cs31 … ResolverEvent revent, IntPtr hostname, IntPtr address, in HostNameResolverCallback() argument
40 private string hostname; field in Avahi.HostNameResolver
53 … byte[] hostname, Protocol aproto, LookupFlags flags, in avahi_host_name_resolver_new() argument
93 … public HostNameResolver (Client client, string hostname) : this (client, -1, Protocol.Unspecified, in HostNameResolver() argument
94hostname, Protocol.Unspecified, in HostNameResolver()
99 public HostNameResolver (Client client, int iface, Protocol proto, string hostname, in HostNameResolver() argument
105 this.hostname = hostname; in HostNameResolver()
129 … Utility.StringToBytes (hostname), aproto, flags, in Start()
150 … ResolverEvent revent, IntPtr hostname, IntPtr address, in OnHostNameResolverCallback() argument
156 currentHost = Utility.PtrToString (hostname); in OnHostNameResolverCallback()

12345678910>>...27