| /freebsd/crypto/openssh/regress/ | 
| H A D | cfginclude.sh | 11 	Hostname aa14 	Hostname bb
 19 	Hostname cc
 25 	Hostname dd # comment
 28 	Hostname ee
 33 	Hostname ff
 45 	Hostname aaa
 48 	Hostname bbb
 51 	Hostname ccc
 54 	Hostname ddd
 [all …]
 
 | 
| /freebsd/usr.sbin/bsdconfig/networking/share/ | 
| H A D | hostname.subr | 32 f_dprintf "%s: loading includes..." networking/hostname.subr43 # f_dialog_hnerror $error $hostname
 64 # f_dialog_validate_hostname $hostname
 66 # Returns zero if the given argument (a fully-qualified hostname) is compliant
 75 # If the hostname is determined to be invalid, the appropriate error will be
 93 # Edits the current hostname.
 98 	local hostname="$( f_sysrc_get 'hostname:-$(hostname)' )"
 99 	local hostname_orig="$hostname" # for change-tracking
 112 		f_dialog_input hostname "$msg" "$hostname" \
 115 		f_dialog_validate_hostname "$hostname" && break
 [all …]
 
 | 
| /freebsd/usr.sbin/bsdconfig/share/media/ | 
| H A D | http.subr | 147 # 			http://hostname:OTHER_PORT148 # 			http://hostname:OTHER_PORT/*
 232 	local hostname="${url#*://}" port=80 dir=/
 233 	case "$hostname" in
 239 		          "$hostname"
 240 		hostname="${hostname#\[}"
 241 		port="${hostname#*\]:}"
 243 		dir="/${hostname#*/}"
 244 		hostname="${hostname%%\]:*}"
 247 		f_dprintf "Looks like an IPv6 addr with port: %s" "$hostname"
 [all …]
 
 | 
| H A D | httpproxy.subr | 76 	local hostname="$proxy" port=312877 	case "$hostname" in
 82 		f_dprintf "Looks like an IPv6 addr with port: %s" "$hostname"
 83 		hostname="${hostname#\[}"
 84 		port="${hostname#*\]:}"
 86 		hostname="${hostname%%\]:*}"
 89 		f_dprintf "Looks like an IPv6 addr: %s" "$hostname"
 90 		hostname="${hostname#\[}"
 91 		hostname="${hostname%\]}"
 98 		          "$hostname"
 [all …]
 
 | 
| /freebsd/libexec/rc/rc.d/ | 
| H A D | hostname | 28 # PROVIDE: hostname35 name="hostname"
 36 desc="Set the system\'s hostname"
 51 		# hostname, see if we can get one from kenv.
 53 		if [ -z "${hostname}" -a \
 55 			hostname=`/bin/kenv dhcp.host-name`
 59 	# Have we got a hostname yet?
 61 	if [ -z "${hostname}" ]; then
 62 		# Null hostname is probably OK if DHCP is in use,
 63 		# or when hostname is already set (common for jails).
 [all …]
 
 | 
| /freebsd/etc/mail/ | 
| H A D | virtusertable.sample | 2 # Map one or all usernames at a source hostname to a specific (or the same)3 # username at another target hostname.  Remember to add the source hostname
 5 # source hostname.
 7 username@a.sample.hostname	localuser
 8 username@a.sample.hostname	specificuser@a.possibly.different.hostname
 9 @another.sample.hostname	specificuser@a.possibly.different.hostname
 10 @yet.another.sample.hostname	%1@a.possibly.different.hostname
 
 | 
| /freebsd/crypto/krb5/src/windows/leashdll/ | 
| H A D | timesync.c | 81     char        hostname[128];  in get_time_server_name()  local93     memset(hostname, '\0', sizeof(hostname));  in get_time_server_name()
 95     GetEnvironmentVariable("TIMEHOST", hostname, sizeof(hostname));  in get_time_server_name()
 98     if (!(bEnv && hostname[0]))  in get_time_server_name()
 121                         strcpy(hostname, value);  in get_time_server_name()
 128         if (!*hostname)  in get_time_server_name()
 133                 if (!LoadString(hmLeash, LSH_TIME_HOST, hostname,  in get_time_server_name()
 134                                 sizeof(hostname)))  in get_time_server_name()
 135                     memset(hostname, '\0', sizeof(hostname));  in get_time_server_name()
 138         if (!*hostname)  in get_time_server_name()
 [all …]
 
 | 
| /freebsd/crypto/heimdal/appl/login/ | 
| H A D | utmp_login.c | 38 /* try to put something useful from hostname into dst, dst_sz:42 shrink_hostname (const char *hostname,  in shrink_hostname()  argument
 50     if (strlen(hostname) < dst_sz) {  in shrink_hostname()
 51 	strlcpy (dst, hostname, dst_sz);  in shrink_hostname()
 55     hd = strchr (hostname, '.');  in shrink_hostname()
 58 	&& hd - hostname < dst_sz) {  in shrink_hostname()
 59 	strlcpy (dst, hostname, dst_sz);  in shrink_hostname()
 60 	dst[hd - hostname] = '\0';  in shrink_hostname()
 64     ret = getaddrinfo (hostname, NULL, NULL, &ai);  in shrink_hostname()
 66 	strncpy (dst, hostname, dst_sz);  in shrink_hostname()
 [all …]
 
 | 
| /freebsd/usr.sbin/bsdconfig/networking/include/ | 
| H A D | messages.subr | 30 … hostname right now?\nIf you choose NO or press ESC, changes will be applied\nduring the next boot…31 …e new hostname during an X11-Forwarded\n ssh(1) session will cause an X11 authentication error.\n\…
 49 msg_hostname_domain="Hostname/Domain"
 50 …ame_exceeds_max_length="ERROR! The hostname entered exceeds the maximum length of\n255 characters.…
 51 …hostname\n(separated by dots) contains one or more invalid characters.\nLabels are case-insensitiv…
 52 …ore individual labels within the hostname\n(separated by dots) exceeds the maximum of 63 character…
 53 …RROR! One or more individual labels within the hostname\n(separated by dots) are null.\n\nInvalid …
 54 …e hostname\n(separated by dots) starts or ends with a hyphen (hyphens\nare allowed, but a label ca…
 81 …r_fqhn="Please enter your fully qualified hostname (e.g. full.example.com). The\ndomain portion of…
 94 msg_saving_hostname="Saving new hostname/domain settings..."
 [all …]
 
 | 
| /freebsd/contrib/ntp/sntp/ | 
| H A D | kod_management.c | 23 	const char *hostname,  in search_entry()  argument30 		if (!strcmp(kod_db[a]->hostname, hostname))  in search_entry()
 42 		if (!strcmp(kod_db[a]->hostname, hostname)) {  in search_entry()
 53 	const char *	hostname,  in add_entry()  argument
 64 	strlcpy(pke->hostname, hostname, sizeof(pke->hostname));  in add_entry()
 67 	 * insert in address ("hostname") order to find duplicates  in add_entry()
 70 		if (strcmp(kod_db[n]->hostname, pke->hostname) >= 0)  in add_entry()
 74 	    0 == strcmp(kod_db[n]->hostname, pke->hostname)) {  in add_entry()
 91 	const char *	hostname,  in delete_entry()  argument
 98 		if (!strcmp(kod_db[a]->hostname, hostname)  in delete_entry()
 [all …]
 
 | 
| /freebsd/contrib/netbsd-tests/fs/kernfs/ | 
| H A D | t_basic.c | 71 ATF_TC(hostname);72 ATF_TC_HEAD(hostname, tc)  in ATF_TC_HEAD()  argument
 75 	atf_tc_set_md_var(tc, "descr", "/kern/hostname changes hostname");  in ATF_TC_HEAD()
 95 ATF_TC_BODY(hostname, tc)  in ATF_TC_BODY()  argument
 102 	if ((fd = rump_sys_open("/kern/hostname", O_RDWR)) == -1)  in ATF_TC_BODY()
 103 		atf_tc_fail_errno("open hostname");  in ATF_TC_BODY()
 109 		atf_tc_fail_errno("read hostname");  in ATF_TC_BODY()
 113 	ATF_REQUIRE_STREQ_MSG(buf, shost, "initial hostname mismatch");  in ATF_TC_BODY()
 115 	/* check changing hostname works */  in ATF_TC_BODY()
 118 		atf_tc_fail_errno("write new hostname");  in ATF_TC_BODY()
 [all …]
 
 | 
| /freebsd/bin/hostname/tests/ | 
| H A D | hostname_test.sh | 35 test_jail_name="test-hostname-jail"38     host.hostname = "test-hostname.example.org";
 60     atf_set "descr" "basic test for getting hostname"
 67     result=$(jexec ${test_jail_name} "hostname")
 68     atf_check_equal "test-hostname.example.org" "${result}"
 70     result=$(jexec ${test_jail_name} "hostname" -s)
 71     atf_check_equal "test-hostname" "${result}"
 73     result=$(jexec ${test_jail_name} "hostname" -d)
 76     jexec ${test_jail_name} "hostname" "test-bsd2"
 77     result=$(jexec ${test_jail_name} "hostname")
 
 | 
| /freebsd/contrib/ofed/infiniband-diags/src/ | 
| H A D | rdma-ndd.c | 60 #define SYS_HOSTNAME "/proc/sys/kernel/hostname"88 		     const char *device, const char *hostname)  in build_node_desc()  argument
 101 				field = hostname;  in build_node_desc()
 117 static int update_node_desc(const char *device, const char *hostname, int force)  in update_node_desc()  argument
 142 	build_node_desc(new_nd, sizeof(new_nd), device, hostname);  in update_node_desc()
 159 static int set_rdma_node_desc(const char *hostname, int force)  in set_rdma_node_desc()  argument
 179 		while (update_node_desc(dent->d_name, hostname, force) && retry > 0) {  in set_rdma_node_desc()
 282 static void process_udev_event(int ud_fd, const char *hostname)  in process_udev_event()  argument
 297 			update_node_desc(device, hostname, 1);  in process_udev_event()
 305 	char hostname[128];  in monitor()  local
 [all …]
 
 | 
| /freebsd/usr.sbin/bsdinstall/scripts/ | 
| H A D | hostname | 41 : ${HOSTNAME=$( hostname )}44 # Default file to store hostname entry in
 46 : ${HOSTNAMEFILE:=$BSDINSTALL_TMPETC/rc.conf.hostname}
 55 msg_please_choose_a_hostname="Please choose a hostname for this machine.\n\nIf you are running on a…
 56 msg_set_hostname="Set Hostname"
 62 SET_HOSTNAME='hostname -s "%s"'
 68 # Display input box (without cancel button) for user to enter desired hostname.
 102 HOSTNAME=$( dialog_hostname "$HOSTNAME" )
 109 	'hostname=\"$HOSTNAME\"' "$HOSTNAMEFILE"
 116 	f_eval_catch "$pgm" hostname "$SET_HOSTNAME" "$HOSTNAME"
 
 | 
| /freebsd/contrib/ntp/sntp/libevent/sample/ | 
| H A D | openssl_hostname_validation.c | 26  * Helper functions to perform basic hostname validation using OpenSSL.57 * Tries to find a match for hostname in the certificate's Common Name field.
 64 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) {  in matches_common_name()  argument
 94         // Compare expected hostname with the CN  in matches_common_name()
 95         if (Curl_cert_hostcheck(common_name_str, hostname) == CURL_HOST_MATCH) {  in matches_common_name()
 105 * Tries to find a match for hostname in the certificate's Subject Alternative Name extension.
 112 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *…  in matches_subject_alternative_name()  argument
 138                         else { // Compare expected hostname with the DNS name  in matches_subject_alternative_name()
 139                                 if (Curl_cert_hostcheck(dns_name, hostname)  in matches_subject_alternative_name()
 154 * Validates the server's identity by looking for the expected hostname in the
 [all …]
 
 | 
| H A D | hostcheck.c | 155  * Match a hostname against a wildcard pattern.163 static int hostmatch(const char *hostname, const char *pattern)  in hostmatch()  argument
 170     return Curl_raw_equal(pattern, hostname) ?  in hostmatch()
 183     return Curl_raw_equal(pattern, hostname) ?  in hostmatch()
 186   hostname_label_end = strchr(hostname, '.');  in hostmatch()
 192      label of the hostname is at least as large as the left-most label  in hostmatch()
 194   if(hostname_label_end - hostname < pattern_label_end - pattern)  in hostmatch()
 199   return Curl_raw_nequal(pattern, hostname, prefixlen) &&  in hostmatch()
 205 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)  in Curl_cert_hostcheck()  argument
 208       !hostname || !*hostname) /* sanity check */  in Curl_cert_hostcheck()
 [all …]
 
 | 
| /freebsd/contrib/libevent/sample/ | 
| H A D | openssl_hostname_validation.c | 26  * Helper functions to perform basic hostname validation using OpenSSL.57 * Tries to find a match for hostname in the certificate's Common Name field.
 64 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) {  in matches_common_name()  argument
 94         // Compare expected hostname with the CN  in matches_common_name()
 95         if (Curl_cert_hostcheck(common_name_str, hostname) == CURL_HOST_MATCH) {  in matches_common_name()
 105 * Tries to find a match for hostname in the certificate's Subject Alternative Name extension.
 112 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *…  in matches_subject_alternative_name()  argument
 138                         else { // Compare expected hostname with the DNS name  in matches_subject_alternative_name()
 139                                 if (Curl_cert_hostcheck(dns_name, hostname)  in matches_subject_alternative_name()
 154 * Validates the server's identity by looking for the expected hostname in the
 [all …]
 
 | 
| H A D | hostcheck.c | 155  * Match a hostname against a wildcard pattern.163 static int hostmatch(const char *hostname, const char *pattern)  in hostmatch()  argument
 170     return Curl_raw_equal(pattern, hostname) ?  in hostmatch()
 183     return Curl_raw_equal(pattern, hostname) ?  in hostmatch()
 186   hostname_label_end = strchr(hostname, '.');  in hostmatch()
 192      label of the hostname is at least as large as the left-most label  in hostmatch()
 194   if(hostname_label_end - hostname < pattern_label_end - pattern)  in hostmatch()
 199   return Curl_raw_nequal(pattern, hostname, prefixlen) &&  in hostmatch()
 205 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)  in Curl_cert_hostcheck()  argument
 208       !hostname || !*hostname) /* sanity check */  in Curl_cert_hostcheck()
 [all …]
 
 | 
| /freebsd/sys/contrib/openzfs/contrib/initramfs/hooks/ | 
| H A D | zfs.in | 52 if [ -f "/etc/hostname" ]; then53 	copy_file config "/etc/hostname"
 55 	hostname="$(mktemp -t hostname.XXXXXXXXXX)"
 56 	hostname > "$hostname"
 57 	copy_file config "$hostname" "/etc/hostname"
 58 	rm -f "$hostname"
 
 | 
| /freebsd/crypto/krb5/src/lib/krb5/os/ | 
| H A D | sn2princ.c | 27 /* Convert a hostname and service name to a principal in the "standard"101         /* Try a forward lookup of the hostname. */  in expand_hostname()
 133     /* Convert the hostname to lower case. */  in expand_hostname()
 165 /* Split data into hostname and trailer (:port or :instance).  Trailers are
 190     char *hostname = NULL, *canonhost = NULL, *combined = NULL;  in canonicalize_princ()  local
 198     hostname = k5memdup0(host.data, host.length, &ret);  in canonicalize_princ()
 199     if (hostname == NULL)  in canonicalize_princ()
 203         /* Expand the hostname with or without DNS as specified. */  in canonicalize_princ()
 204         ret = expand_hostname(context, hostname, use_dns, &canonhost);  in canonicalize_princ()
 208         canonhost = strdup(hostname);  in canonicalize_princ()
 [all …]
 
 | 
| /freebsd/usr.sbin/syslogd/ | 
| H A D | syslog.conf.5 | 45 .Em hostname156 .Em hostname
 162 .Em hostname
 171 .Em hostname
 217 .Em hostname
 219 .Ql #+hostname
 221 .Ql +hostname
 223 received from the specified hostname.
 225 .Em hostname
 227 .Ql #-hostname
 [all …]
 
 | 
| /freebsd/usr.sbin/arp/ | 
| H A D | arp.8 | 39 .Ar hostname46 .Fl d Ar hostname
 52 .Fl s Ar hostname ether_addr
 57 .Fl S Ar hostname ether_addr
 72 .Ar hostname .
 93 .Ar hostname
 114 .It Fl s Ar hostname ether_addr
 118 .Ar hostname
 134 .Ar hostname
 155 .It Fl S Ar hostname ether_addr
 [all …]
 
 | 
| /freebsd/crypto/openssl/demos/guide/ | 
| H A D | tls-client-block.c | 29 static BIO *create_socket_bio(const char *hostname, const char *port, int family)  in create_socket_bio()  argument39     if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_STREAM, 0,  in create_socket_bio()
 111     char *hostname, *port;  in main()  local
 116         printf("Usage: tls-client-block [-6]  hostname port\n");  in main()
 122             printf("Usage: tls-client-block [-6]  hostname port\n");  in main()
 128     hostname = argv[argnext++];  in main()
 175     bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET);  in main()
 183      * Tell the server during the handshake which hostname we are attempting  in main()
 186     if (!SSL_set_tlsext_host_name(ssl, hostname)) {  in main()
 187         printf("Failed to set the SNI hostname\n");  in main()
 [all …]
 
 | 
| /freebsd/bin/hostname/ | 
| H A D | hostname.1 | 33 .Nm hostname45 set the hostname by supplying an argument; this is usually done in the
 47 .Pa /etc/rc.d/hostname ,
 51 .Va hostname
 69 $ hostname beastie.localdomain.org
 70 $ hostname
 76 $ hostname -s
 82 $ hostname -d
 
 | 
| H A D | hostname.c | 46 	char hostname[MAXHOSTNAMELEN], *hostp, *p;  in main()  local54 			 * On Linux, "hostname -f" prints FQDN.  in main()
 55 			 * BSD "hostname" always prints FQDN by  in main()
 79 		hostp = hostname;  in main()
 80 		if (gethostname(hostname, (int)sizeof(hostname)))  in main()
 83 			p = strchr(hostname, '.');  in main()
 87 			p = strchr(hostname, '.');  in main()
 100 	(void)fprintf(stderr, "usage: hostname [-f] [-s | -d] [name-of-host]\n");  in usage()
 
 |