/freebsd/crypto/openssh/regress/ |
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 …]
|
/freebsd/sys/nlm/ |
H A D | nlm_prot_impl.c | 648 struct nlm_host *host = af->af_host; in nlm_cancel_async_lock() local 651 mtx_assert(&host->nh_lock, MA_OWNED); in nlm_cancel_async_lock() 653 mtx_unlock(&host->nh_lock); in nlm_cancel_async_lock() 666 mtx_lock(&host->nh_lock); in nlm_cancel_async_lock() 670 "cancelled\n", af, host->nh_caller_name, host->nh_sysid); in nlm_cancel_async_lock() 676 TAILQ_REMOVE(&host->nh_pending, af, af_link); in nlm_cancel_async_lock() 677 mtx_unlock(&host->nh_lock); in nlm_cancel_async_lock() 679 mtx_lock(&host->nh_lock); in nlm_cancel_async_lock() 686 nlm_check_expired_locks(struct nlm_host *host) in nlm_check_expired_locks() argument 691 mtx_lock(&host->nh_lock); in nlm_check_expired_locks() [all …]
|
/freebsd/contrib/bsnmp/tests/ |
H A D | snmp_parse_server.cc | 92 const auto host = "::"s; variable 93 const auto str = "[" + host + "]"; 96 REQUIRE(sc.chost == host); 102 const auto host = "::1"s; variable 103 const auto str = "[" + host + "]"; 106 REQUIRE(sc.chost == host); 112 const auto host = "fc00:0:12::1"s; variable 113 const auto str = "[" + host + "]"; 116 REQUIRE(sc.chost == host); 122 const auto host = "fc00:0:1x::1"s; variable [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | no_host_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http 4 ai3: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 5 ai4: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 7 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv echo 8 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv echo 9 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv echo 10 ai3: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv echo 11 ai4: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv echo [all …]
|
H A D | basics_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http 10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 11 ai2: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 12 ai3: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http [all …]
|
H A D | no_host_v4.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv http 2 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 3 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv echo 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv echo 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv echo 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv tftp 10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv tftp 11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv tftp 13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv 80 [all …]
|
H A D | basics_v4.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http 10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http 11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http 13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv tftp [all …]
|
H A D | no_serv_v4v6.exp | 1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv (empty) 2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0 3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0 5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv (empty) 6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0 7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0 9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv (empty) 10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0 11 ai2: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0 12 ai3: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0 [all …]
|
/freebsd/contrib/tcp_wrappers/ |
H A D | eval.c | 57 char *eval_hostaddr(struct host_info *host) in eval_hostaddr() argument 59 if (host->addr[0] == 0) { in eval_hostaddr() 60 strcpy(host->addr, unknown); in eval_hostaddr() 61 if (host->request->hostaddr != 0) in eval_hostaddr() 62 host->request->hostaddr(host); in eval_hostaddr() 64 return (host->addr); in eval_hostaddr() 69 char *eval_hostname(struct host_info *host) in eval_hostname() argument 71 if (host->name[0] == 0) { in eval_hostname() 72 strcpy(host->name, unknown); in eval_hostname() 73 if (host->request->hostname != 0) in eval_hostname() [all …]
|
H A D | scaffold.c | 49 struct hostent host; in dup_hostent() member 65 memset((char *) &hb->host, 0, sizeof(hb->host)); in dup_hostent() 66 hb->host.h_length = hp->h_length; in dup_hostent() 67 hb->host.h_addr_list = hb->addr_list; in dup_hostent() 68 hb->host.h_addr_list[count] = 0; in dup_hostent() 69 data = (char *) (hb->host.h_addr_list + count + 1); in dup_hostent() 72 hb->host.h_addr_list[count] = data + hp->h_length * count; in dup_hostent() 73 memcpy(hb->host.h_addr_list[count], addr, hp->h_length); in dup_hostent() 75 return (&hb->host); in dup_hostent() 82 struct addrinfo *find_inet_addr(char *host) in find_inet_addr() argument [all …]
|
H A D | socket.c | 140 void sock_hostaddr(struct host_info *host) in sock_hostaddr() argument 143 struct sockaddr *sin = host->sin; in sock_hostaddr() 154 getnameinfo(sin, salen, host->addr, sizeof(host->addr), in sock_hostaddr() 157 struct sockaddr_in *sin = host->sin; in sock_hostaddr() 160 STRN_CPY(host->addr, inet_ntoa(sin->sin_addr), sizeof(host->addr)); in sock_hostaddr() 166 void sock_hostname(struct host_info *host) in sock_hostname() argument 169 struct sockaddr *sin = host->sin; in sock_hostname() 210 STRN_CPY(host->name, hname, sizeof(host->name)); in sock_hostname() 217 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) { in sock_hostname() 221 host->name); in sock_hostname() [all …]
|
/freebsd/sys/dev/mmc/ |
H A D | mmc_helpers.c | 38 mmc_parse_sd_speed(device_t dev, struct mmc_host *host) in mmc_parse_sd_speed() argument 49 host->caps |= MMC_CAP_HSPEED; in mmc_parse_sd_speed() 51 host->caps |= MMC_CAP_UHS_SDR12 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed() 53 host->caps |= MMC_CAP_UHS_SDR25 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed() 55 host->caps |= MMC_CAP_UHS_SDR50 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed() 57 host->caps |= MMC_CAP_UHS_SDR104 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed() 59 host->caps |= MMC_CAP_UHS_DDR50 | MMC_CAP_SIGNALING_180; in mmc_parse_sd_speed() 63 mmc_parse_mmc_speed(device_t dev, struct mmc_host *host) in mmc_parse_mmc_speed() argument 67 host->caps |= MMC_CAP_HSPEED; in mmc_parse_mmc_speed() 69 host->caps |= MMC_CAP_MMC_DDR52_120 | MMC_CAP_SIGNALING_120; in mmc_parse_mmc_speed() [all …]
|
/freebsd/crypto/openssh/regress/unittests/misc/ |
H A D | test_parse.c | 29 char *user, *host, *path; in test_parse() local 33 &user, &host, &path), 0); in test_parse() 35 ASSERT_STRING_EQ(host, "some.host"); in test_parse() 37 free(user); free(host); free(path); in test_parse() 42 &user, &host, &path), 0); in test_parse() 44 ASSERT_STRING_EQ(host, "1.22.33.144"); in test_parse() 46 free(user); free(host); free(path); in test_parse() 51 &user, &host, &path), 0); in test_parse() 53 ASSERT_STRING_EQ(host, "1.22.33.144"); in test_parse() 55 free(user); free(host); free(path); in test_parse() [all …]
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | toolchain-simd.m4 | 2 dnl # Checks if host toolchain supports SIMD instructions 38 AC_MSG_CHECKING([whether host toolchain supports SSE]) 46 AC_DEFINE([HAVE_SSE], 1, [Define if host toolchain supports SSE]) 57 AC_MSG_CHECKING([whether host toolchain supports SSE2]) 65 AC_DEFINE([HAVE_SSE2], 1, [Define if host toolchain supports SSE2]) 76 AC_MSG_CHECKING([whether host toolchain supports SSE3]) 85 AC_DEFINE([HAVE_SSE3], 1, [Define if host toolchain supports SSE3]) 96 AC_MSG_CHECKING([whether host toolchain supports SSSE3]) 104 AC_DEFINE([HAVE_SSSE3], 1, [Define if host toolchain supports SSSE3]) 115 AC_MSG_CHECKING([whether host toolchain supports SSE4.1]) [all …]
|
/freebsd/contrib/ntp/scripts/ntpsweep/ |
H A D | ntpsweep.in | 37 (((@_ != 1) && !$opts->{host} && !@{$opts->{'host-list'}}))) { 52 if ($opts->{host}) { 53 push @hosts, $opts->{host}; 57 push @hosts, @{$opts->{'host-list'}}; 76 my $host; 77 for $host (@hosts) { 78 scan_host($host, 0, $host => 1); 100 my ($host, [all...] |
/freebsd/contrib/sendmail/contrib/ |
H A D | expn.pl | 470 local($method,$user,*host,*fall_table,*fellback) = @_; 482 print "U: $user H: $host\n"; 485 $us = "$user *** $host"; 500 print "Oldhost($host, $us) = " if $debug; 501 $oldhost = $host; 540 $host = $oldhost; 761 local($host,$domain_host,$u) = @_; 765 $host =~ s/\.$//; 772 print "domainify($host,$domain_host) = $host\n" if $debug; 773 return $host; [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | BIO_parse_hostserv.pod | 7 - utility routines to parse a standard host and service string 16 int BIO_parse_hostserv(const char *hostserv, char **host, char **service, 23 back via B<host> and B<service>. Those will need to be freed after 30 host + ':' + service 31 host + ':' + '*' 32 host + ':' 35 host 38 The host part can be a name or an IP address. If it's a IPv6 47 host + ':' + service => *host = "host", *service = "service" 48 host + ':' + '*' => *host = "host", *service = NULL [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_sethostname.c | 41 static char host[MAXHOSTNAMELEN]; variable 85 (void)sethostname(host, sizeof(host)); in ATF_TC_BODY() 90 (void)sethostname(host, sizeof(host)); in ATF_TC_CLEANUP() 112 ATF_REQUIRE(sethostname(host, MAXHOSTNAMELEN - 1 ) == 0); in ATF_TC_CLEANUP() 113 ATF_REQUIRE(sethostname(host, MAXHOSTNAMELEN) == -1); in ATF_TC_CLEANUP() 115 (void)sethostname(host, sizeof(host)); in ATF_TC_CLEANUP() 130 ATF_REQUIRE_ERRNO(EPERM, sethostname(host, sizeof(host)) == -1); in ATF_TC_BODY() 135 (void)sethostname(host, sizeof(host)); in ATF_TC_CLEANUP() 141 (void)memset(host, 0, sizeof(host)); in ATF_TP_ADD_TCS() 143 ATF_REQUIRE(gethostname(host, sizeof(host)) == 0); in ATF_TP_ADD_TCS()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | krbhst.c | 296 append_host_hostinfo(struct krb5_krbhst_data *kd, struct krb5_krbhst_info *host) in append_host_hostinfo() argument 301 if(h->proto == host->proto && in append_host_hostinfo() 302 h->port == host->port && in append_host_hostinfo() 303 strcmp(h->hostname, host->hostname) == 0) { in append_host_hostinfo() 304 _krb5_free_krbhst_info(host); in append_host_hostinfo() 307 *kd->end = host; in append_host_hostinfo() 308 kd->end = &host->next; in append_host_hostinfo() 313 const char *host, int def_port, int port) in append_host_string() argument 317 hi = parse_hostspec(context, kd, host, def_port, port); in append_host_string() 330 krb5_krbhst_format_string(krb5_context context, const krb5_krbhst_info *host, in krb5_krbhst_format_string() argument [all …]
|
/freebsd/usr.bin/whois/ |
H A D | whois.c | 124 const char *host; member 138 for (i = 0; try_rir[i].host != NULL; i++) in reset_rir() 153 const char *country, *host; in main() local 160 country = host = NULL; in main() 165 host = ANICHOST; in main() 168 host = PNICHOST; in main() 171 host = ABUSEHOST; in main() 177 host = FNICHOST; in main() 180 host = GNICHOST; in main() 183 host = optarg; in main() [all …]
|
/freebsd/contrib/ntp/scripts/lib/NTP/ |
H A D | Util.pm | 32 my ($peer, $vars, $host) = @_; 39 $cmd .= " $host" if defined $host; 71 my ($host) = @_; 76 ($err, $res) = getaddrinfo($host, '', {socktype => SOCK_RAW}); 85 elsif ($host =~ /^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/) { 86 return gethostbyaddr inet_aton($host), AF_INET; 94 my ($host) = @_; 96 $host ||= ''; 97 my $cmd = "$ntpq_path -npw $host |"; 115 $r->{remote} = $r->{tally} . $r->{host}; [all …]
|
/freebsd/contrib/ntp/scripts/deprecated/ |
H A D | ntp-groper | 31 for host in $* 35 gethost $host > /dev/null 2>&1 38 echo "$host not registered in DNS" 42 ping $host 64 1 > /dev/null 2>&1 45 echo "$host not responding to ping" 53 ntpq -c "ntpversion $version" -p $host > $ntpqlog 2>&1 57 echo "$host refused ntpq connection" 66 ntpq -c "ntpversion $version" -c rl $host > $ntpqlog 80 echo "$host answers NTP version $version, stratum: $stratum, ref: $synchost" 86 echo "$host not responding to NTP"
|
/freebsd/contrib/dma/ |
H A D | net.c | 340 h->host, h->addr, h->pref); in open_connection() 345 h->host, h->addr); in open_connection() 351 h->host, h->addr); in open_connection() 477 deliver_to_host(struct qitem *it, struct mx_hostentry *host) in deliver_to_host() argument 490 fd = open_connection(host); in deliver_to_host() 499 host->host, host->addr, c, neterr); \ in deliver_to_host() 501 host->host, host->addr, c, neterr); \ in deliver_to_host() 506 host->host, host->addr, c, neterr); \ in deliver_to_host() 535 host->host, host->addr, neterr); in deliver_to_host() 544 if (strcmp(a->host, host->host) == 0) { in deliver_to_host() [all …]
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64lsn.c | 105 struct nat64lsn_host *host; member 139 static void nat64lsn_destroy_host(struct nat64lsn_host *host); 204 struct nat64lsn_host *host, const struct ipfw_flow_id *f_id __unused) in nat64lsn_get_aliaslink() argument 212 return (CK_SLIST_FIRST(&host->aliases)); in nat64lsn_get_aliaslink() 318 nat64lsn_get_state6to4(struct nat64lsn_cfg *cfg, struct nat64lsn_host *host, in nat64lsn_get_state6to4() argument 330 CK_SLIST_FOREACH(state, &STATE_HASH(host, hval), entries) { in nat64lsn_get_state6to4() 336 link = nat64lsn_get_aliaslink(cfg, host, f_id); in nat64lsn_get_state6to4() 389 state->host = host; in nat64lsn_get_state6to4() 393 HOST_LOCK(host); in nat64lsn_get_state6to4() 394 SET_AGE(host->timestamp); in nat64lsn_get_state6to4() [all …]
|