| /openbsd-src/gnu/usr.bin/perl/cpan/libnet/lib/Net/ |
| H A D | Domain.pm | 24 my ($host, $domain, $fqdn) = (undef, undef, undef); 32 return $host 33 if (defined $host); 40 $host = gethostbyaddr($a, Socket::AF_INET()); 41 last if defined $host; 43 if (defined($host) && index($host, '.') > 0) { 44 $fqdn = $host; 45 ($host, $domain) = $fqdn =~ /^([^.]+)\.(.*)$/; 47 return $host; 50 chomp($host = `hostname`); [all …]
|
| /openbsd-src/regress/usr.bin/ssh/ |
| H A D | keygen-knownhosts.sh | 9 for x in host-a host-b host-c host-d host-e host-f host-a2 host-b2; do 16 host-a|host-b) printf "$x " ;; 17 host-c) printf "@cert-authority $x " ;; 18 host-d) printf "@revoked $x " ;; 19 host-e) printf "host-e* " ;; 20 host-f) printf "host-f,host-g,host-h " ;; 21 host-a2) printf "host-a " ;; 22 host-b2) printf "host-b " ;; 78 expect_key host-a host-a host-a 2 79 expect_key host-a host-a host-a2 20 [all …]
|
| H A D | sshcfgparse.sh | 38 f=`${SSH} -GF $OBJ/ssh_config host | awk '/exitonforwardfailure/{print $2}'` 46 f=`${SSH} -GF $OBJ/ssh_config host | awk '/clearallforwardings/{print $2}'` 56 f=`${SSH} -GF $OBJ/ssh_config host | awk '/^user /{print $2}'` 58 f=`${SSH} -GF $OBJ/ssh_config -o user=foo -l bar baz@host | awk '/^user /{print $2}'` 60 f=`${SSH} -GF $OBJ/ssh_config -lbar baz@host user=foo baz@host | awk '/^user /{print $2}'` 62 f=`${SSH} -GF $OBJ/ssh_config baz@host -o user=foo -l bar baz@host | awk '/^user /{print $2}'` 67 f=`${SSH} -GF none host | awk '/^pubkeyacceptedalgorithms /{print $2}'` 71 f=`${SSH} -GF none -opubkeyacceptedalgorithms=ssh-ed25519 host | \ 76 f=`${SSH} -GF none -opubkeyacceptedalgorithms=-ssh-ed25519-cert* host | \ 80 f=`${SSH} -GF none -opubkeyacceptedalgorithms=-ssh-ed25519 host | \ [all …]
|
| H A D | cfginclude.sh | 10 Match host a 13 Match host=b # comment 17 Match host c 21 Match host=m !user xxxyfake 40 Match host xxxxxx 44 Match host=a 47 Match host b 50 Match host c # comment 64 Match host a 67 Match host [all...] |
| H A D | servcfginclude.sh | 6 HostKey $OBJ/host.ssh-ed25519 7 Match host=a 10 Match host b 14 Match host=c 18 Match host m 37 Match host xxxxxx 41 Match host a 44 Match host b 47 Match host c 61 Match host [all...] |
| /openbsd-src/usr.sbin/relayd/ |
| H A D | hce.c | 106 struct host *host; in hce_disable_events() local 110 TAILQ_FOREACH(host, &table->hosts, entry) { in hce_disable_events() 111 host->he = HCE_ABORT; in hce_disable_events() 112 if (event_initialized(&host->cte.ev)) { in hce_disable_events() 113 event_del(&host->cte.ev); in hce_disable_events() 114 close(host->cte.s); in hce_disable_events() 131 struct host *host; in hce_launch_checks() local 140 TAILQ_FOREACH(host, &table->hosts, entry) { in hce_launch_checks() 141 if ((host->flags & F_CHECK_DONE) == 0) in hce_launch_checks() 142 host->he = HCE_INTERVAL_TIMEOUT; in hce_launch_checks() [all …]
|
| H A D | check_tcp.c | 57 switch (cte->host->conf.ss.ss_family) { in check_tcp() 59 ((struct sockaddr_in *)&cte->host->conf.ss)->sin_port = in check_tcp() 63 ((struct sockaddr_in6 *)&cte->host->conf.ss)->sin6_port = in check_tcp() 68 len = ((struct sockaddr *)&cte->host->conf.ss)->sa_len; in check_tcp() 70 if ((s = socket(cte->host->conf.ss.ss_family, in check_tcp() 85 if (cte->host->conf.ttl > 0) in check_tcp() 86 switch (cte->host->conf.ss.ss_family) { in check_tcp() 89 &cte->host->conf.ttl, sizeof(int)) == -1) in check_tcp() 94 &cte->host->conf.ttl, sizeof(int)) == -1) in check_tcp() 100 if (connect(s, (struct sockaddr *)&cte->host->conf.ss, len) == -1) { in check_tcp() [all …]
|
| H A D | pfe.c | 122 struct host *host; in pfe_dispatch_hce() local 132 if ((host = host_find(env, st.id)) == NULL) in pfe_dispatch_hce() 134 host->he = st.he; in pfe_dispatch_hce() 135 if (host->flags & F_DISABLE) in pfe_dispatch_hce() 137 host->retry_cnt = st.retry_cnt; in pfe_dispatch_hce() 139 host->check_cnt++; in pfe_dispatch_hce() 141 host->up_cnt++; in pfe_dispatch_hce() 143 if (host->check_cnt != st.check_cnt) { in pfe_dispatch_hce() 145 host->conf.id, host->up); in pfe_dispatch_hce() 149 if (host->up == st.up) in pfe_dispatch_hce() [all …]
|
| H A D | check_icmp.c | 75 schedule_icmp(struct relayd *env, struct host *host) in schedule_icmp() argument 77 host->last_up = host->up; in schedule_icmp() 78 host->flags &= ~(F_CHECK_SENT|F_CHECK_DONE); in schedule_icmp() 80 if (((struct sockaddr *)&host->conf.ss)->sa_family == AF_INET) in schedule_icmp() 118 struct host *host; in icmp_checks_done() local 124 TAILQ_FOREACH(host, &table->hosts, entry) { in icmp_checks_done() 125 if (((struct sockaddr *)&host->conf.ss)->sa_family != in icmp_checks_done() 128 if (!(host->flags & F_CHECK_DONE)) in icmp_checks_done() 139 struct host *host; in icmp_checks_timeout() local 145 TAILQ_FOREACH(host, &table->hosts, entry) { in icmp_checks_timeout() [all …]
|
| H A D | check_script.c | 36 check_script(struct relayd *env, struct host *host) in check_script() argument 41 if ((host->flags & (F_CHECK_SENT|F_CHECK_DONE)) == F_CHECK_SENT) in check_script() 44 if ((table = table_find(env, host->conf.tableid)) == NULL) in check_script() 47 host->last_up = host->up; in check_script() 48 host->flags &= ~(F_CHECK_SENT|F_CHECK_DONE); in check_script() 50 scr.host = host->conf.id; in check_script() 51 if ((strlcpy(scr.name, host->conf.name,sizeof(scr.name)) >= in check_script() 60 host->flags |= F_CHECK_SENT; in check_script() 66 struct host *host; in script_done() local 68 if ((host = host_find(env, scr->host)) == NULL) in script_done() [all …]
|
| H A D | check_tls.c | 48 cte->host->up = HOST_DOWN; in check_tls_read() 50 hce_notify_done(cte->host, HCE_TLS_READ_TIMEOUT); in check_tls_read() 63 hce_notify_done(cte->host, cte->host->he); in check_tls_read() 67 cte->host->up = HOST_DOWN; in check_tls_read() 70 hce_notify_done(cte->host, cte->host->he); in check_tls_read() 77 cte->host->up = HOST_DOWN; in check_tls_read() 78 check_tls_error(cte, cte->host->conf.name, "cannot read"); in check_tls_read() 80 hce_notify_done(cte->host, HCE_TLS_READ_ERROR); in check_tls_read() 99 cte->host->up = HOST_DOWN; in check_tls_write() 101 hce_notify_done(cte->host, HCE_TLS_WRITE_TIMEOUT); in check_tls_write() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ext/Sys-Hostname/ |
| H A D | Hostname.pm | 15 our $host; 34 return $host if defined $host; 37 $host = ghname() if defined &ghname; 38 return $host if defined $host; 43 eval { local $SIG{__DIE__}; $host = (gethostbyname('me'))[0] }; 44 if ($@) { return $host = $ENV{'SYS$NODE'}; } 49 $host = $ENV{'ARPANET_HOST_NAME'} || $ENV{'INTERNET_HOST_NAME'} || 52 return $host if $host; 56 if ($rslt !~ /IVVERB/) { ($host) = $rslt =~ /^(\S+)/; } 57 return $host if $host; [all …]
|
| /openbsd-src/regress/lib/libc/getaddrinfo/ |
| H A D | answer | 2 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http 3 ai1: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 80 4 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http 5 ai1: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 80 6 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http 7 ai1: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 80 8 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 80 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv tftp 10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 69 11 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv tftp [all …]
|
| /openbsd-src/regress/usr.bin/ssh/unittests/misc/ |
| H A D | test_parse.c | 25 char *user, *host, *path; in test_parse() local 29 &user, &host, &path), 0); in test_parse() 31 ASSERT_STRING_EQ(host, "some.host"); in test_parse() 33 free(user); free(host); free(path); in test_parse() 38 &user, &host, &path), 0); in test_parse() 40 ASSERT_STRING_EQ(host, "1.22.33.144"); in test_parse() 42 free(user); free(host); free(path); in test_parse() 47 &user, &host, &path), 0); in test_parse() 49 ASSERT_STRING_EQ(host, "1.22.33.144"); in test_parse() 51 free(user); free(host); free(path); in test_parse() [all …]
|
| /openbsd-src/gnu/usr.bin/cc/cc_tools/ |
| H A D | Makefile.dep | 4 errors.o: bconfig.h auto-host.h 6 genattr.o: bconfig.h auto-host.h \ 11 auto-host.h \ 17 auto-host.h \ 21 gencheck.o: bconfig.h auto-host.h \ 26 auto-host.h 28 gencodes.o: bconfig.h auto-host.h \ 33 auto-host.h \ 37 genconfig.o: bconfig.h auto-host.h \ 42 auto-host.h \ [all …]
|
| /openbsd-src/regress/usr.sbin/syslogd/ |
| H A D | args-zulu.pl | 14 (my $host = hostname()) =~ s/\..*//; 63 qr/^$iso $host no time$/ => 1, 64 qr/^$iso $host bsd time$/ => 1, 65 qr/^1985-04-12T23:20:50Z $host iso time$/ => 1, 66 qr/^1985-04-12T23:20:50.52Z $host iso frac$/ => 1, 67 qr/^1985-04-12T19:20:50.52-04:00 $host iso offset$/ => 1, 68 qr/^2003-10-11T22:14:15.003Z $host iso milisec$/ => 1, 69 qr/^2003-08-24T05:14:15.000003-07:00 $host iso full$/ => 1, 70 qr/^$iso $host 2003-08-24T05:14:15.000000003-07:00 invalid$/ => 1, 71 qr/^$iso $host nil time$/ => 1, [all …]
|
| H A D | args-hostname.pl | 13 (my $host = hostname()) =~ s/\..*//; 44 host => "127.0.0.1", 49 host => "127.0.0.1", 68 qr/:\d\d $host client connect proto: udp$/ => 1, 69 qr/:\d\d $host client connect proto: tcp$/ => 1, 70 qr/:\d\d $host client connect proto: tls$/ => 1, 72 qr/:\d\d $host syslogd-.*: client logsock type: native/ => 1, 73 qr/:\d\d $host syslogd-.*: client logsock type: unix/ => 1, 74 qr/:\d\d $host syslogd-.*: client logsock type: udp/ => 1, 75 qr/:\d\d $host syslogd-.*: client logsock type: tcp/ => 1, [all …]
|
| /openbsd-src/regress/sys/netinet/ipsec/ |
| H A D | Makefile | 175 .for host in SRC IPS RT ECO 183 .for host mode in SRC TRANSP SRC TUNNEL \ 284 .for host dir in SRC OUT IPS IN IPS OUT RT IN RT OUT ECO IN 286 TARGETS += ping-${host}_${dir}_${ipv} 287 run-send-ping-${host}_${dir}_${ipv}: 288 ${ping} -n -c 1 -w 2 ${${host}_${dir}_${ipv}} 296 .for host mode in SRC TRANSP SRC TUNNEL \ 302 TARGETS += ping-${len}-${host}_${sec}_${mode}_${ipv} 303 ping ${host:L} ${sec:L} ${mode:L} ${ipv:L}:\ 304 run-send-ping-${len}-${host}_${sec}_${mode}_${ipv} [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/Net-Ping/t/ |
| H A D | 410_syn_host.t | 1 # Same as 400_ping_syn.t but testing ack( $host ) instead of ack( ). 38 # Hopefully this is never a routeable host 79 foreach my $host (keys %webs) { 83 is($p->ping($host), 1, "Can reach $host [" . ($p->{bad}->{$host} || "") . "]"); 87 foreach my $host (sort keys %webs) { 88 my $on = $p->ack($host); 90 if ($webs{$host}) { 91 … is($webs{$host}, 1, "ack: supposed to be up http://$host/ [" . ($p->{bad}->{$host} || "") . "]"); 93 ok("TODO ack: supposed to be up: http://$host/ [" . ($p->{bad}->{$host} || "") . "]"); 96 if (!$webs{$host}) { [all …]
|
| /openbsd-src/gnu/usr.bin/perl/utils/ |
| H A D | libnetcfg.PL | 137 my $host; 140 foreach $host (@$hlist) 142 if(valid_host($host)) 144 push(@h, $host); 147 warn "Bad hostname: '$host'\n"; 207 my $host; 212 $host = ($ans =~ /(\S*)/)[0]; 214 if(!length($host) || valid_host($host)); 217 if $def eq $host; 222 Hostname '$host' does not seem to exist, please enter again [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Socket/t/ |
| H A D | getnameinfo.t | 8 my ( $err, $host, $service ); 10 ( $err, $host, $service ) = getnameinfo( pack_sockaddr_in( 80, inet_aton( "127.0.0.1" ) ), NI_NUMER… 14 is( $host, "127.0.0.1", '$host is 127.0.0.1 for NH/NS' ); 17 ( $err, $host, $service ) = getnameinfo( pack_sockaddr_in( 80, inet_aton( "127.0.0.1" ) ), NI_NUMER… 18 is( $host, undef, '$host is undef for NIx_NOHOST' ); 21 ( $err, $host, $service ) = getnameinfo( pack_sockaddr_in( 80, inet_aton( "127.0.0.1" ) ), NI_NUMER… 22 is( $host, "127.0.0.1", '$host is 127.0.0.1 for NIx_NOSERV' ); 25 ( $err, $host, $service ) = getnameinfo( pack_sockaddr_in( 80, inet_aton( "127.0.0.1" ) ), NI_NUMER… 28 # We can't meaningfully compare '$host' with anything specific, all we can be 30 ok( length $host, '$host is nonzero length for NS' ); [all …]
|
| /openbsd-src/usr.bin/rup/ |
| H A D | rup.c | 90 char *host; member 113 return strcmp(d1->host, d2->host); in compare() 127 remember_rup_data(char *host, struct statstime *st) in remember_rup_data() argument 144 if ((rup_data[rup_data_idx].host = strdup(host)) == NULL) in remember_rup_data() 155 char *host; in rstat_reply() local 162 host = hp->h_name; in rstat_reply() 164 host = inet_ntoa(raddrp->sin_addr); in rstat_reply() 169 remember_rup_data(host, host_stat); in rstat_reply() 171 print_rup_data(host, host_stat); in rstat_reply() 179 print_rup_data(char *host, statstime *host_stat) in print_rup_data() argument [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/Net-Ping/lib/Net/ |
| H A D | Ping.pm | 79 my ($host, # Name or IP number of host to ping 85 $p->ping($host); # Going out of scope closes the connection 155 my $host = $self->{'host'}; 156 my $ip = $self->_resolv($host) or 157 carp("could not resolve host $host"); 158 $self->{host} = $ip; 562 $host, # Name or IP number of host to ping 571 $host = $self->{host} if !defined $host and $self->{host}; 572 croak("Usage: \$p->ping([ \$host [, \$timeout [, \$family]]])") if @_ > 4 or !$host; 590 $ip = $self->_resolv($host); [all …]
|
| /openbsd-src/sys/dev/pci/drm/i915/display/ |
| H A D | intel_dsi.c | 89 struct intel_dsi_host *host; in intel_dsi_host_init() local 92 host = kzalloc(sizeof(*host), GFP_KERNEL); in intel_dsi_host_init() 93 if (!host) in intel_dsi_host_init() 96 host->base.ops = funcs; in intel_dsi_host_init() 97 host->intel_dsi = intel_dsi; in intel_dsi_host_init() 98 host->port = port; in intel_dsi_host_init() 109 kfree(host); in intel_dsi_host_init() 113 device->host = &host->base; in intel_dsi_host_init() 114 host->device = device; in intel_dsi_host_init() 116 return host; in intel_dsi_host_init()
|
| /openbsd-src/usr.bin/ftp/ |
| H A D | fetch.c | 309 char *hosttail, *cause = "unknown", *newline, *host, *port, *buf = NULL; in url_get() local 353 host = newline + sizeof(HTTP_URL) - 1; in url_get() 358 host = newline + sizeof(FTP_URL) - 1; in url_get() 365 host = newline + sizeof(HTTPS_URL) - 1; in url_get() 376 path = strchr(host, '/'); /* Find path */ in url_get() 384 p = strchr(host, '@'); in url_get() 387 credentials = recode_credentials(host); in url_get() 390 memmove(host, p, strlen(p) + 1); in url_get() 391 path = strchr(host, '/'); in url_get() 397 path = strchr(host,'\0'); /* we have outfile. */ in url_get() [all …]
|