Home
last modified time | relevance | path

Searched refs:hosts (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/NextBSD/contrib/ofed/management/infiniband-diags/scripts/
HDibfindnodesusing.pl54 my @hosts = undef;
57 if ($sw_guid eq "") { return (@hosts); }
64 push @hosts, $2;
69 return (@hosts);
213 my @hosts = undef;
214 @hosts = get_hosts_routed($switch_guid, $target_port);
216 my $hosts = compress_hostlist(@hosts);
217 @hosts = split ",", $hosts;
220 print "@hosts\n\n";
222 @hosts = get_hosts_routed($rem_sw_guid, $rem_sw_port);
[all …]
/NextBSD/usr.sbin/rpc.statd/
HDstatd.c63 char **hosts, *svcport_str = NULL; variable
100 hosts_bak = hosts; in main()
101 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main()
103 if (hosts != NULL) { in main()
105 free(hosts[i]); in main()
106 free(hosts); in main()
110 hosts = hosts_bak; in main()
111 hosts[nhosts - 1] = strdup(optarg); in main()
112 if (hosts[nhosts - 1] == NULL) { in main()
114 free(hosts[i]); in main()
[all …]
HDfile.c87 for (i = 0, hp = status_info->hosts; i < status_info->noOfHosts; i++, hp++) in find_host()
132 spare_slot = &status_info->hosts[status_info->noOfHosts]; in find_host()
229 HostInfo *this_host = &status_info->hosts[i]; in init_file()
303 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts()
341 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts()
/NextBSD/usr.sbin/rpc.lockd/
HDlockd.c88 char **hosts, *svcport_str = NULL; variable
147 hosts_bak = hosts; in main()
148 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main()
150 if (hosts != NULL) { in main()
152 free(hosts[i]); in main()
153 free(hosts); in main()
157 hosts = hosts_bak; in main()
158 hosts[nhosts - 1] = strdup(optarg); in main()
159 if (hosts[nhosts - 1] == NULL) { in main()
161 free(hosts[i]); in main()
[all …]
/NextBSD/usr.bin/systat/
HDnetcmds.c67 } *hosts; variable
262 if (hosts == 0) in selecthost()
264 free((char *)hosts), hosts = 0; in selecthost()
268 for (p = hosts; p < hosts+nhosts; p++) in selecthost()
274 hosts = (struct hitem *)malloc(sizeof (*p)); in selecthost()
276 hosts = (struct hitem *)realloc(hosts, (nhosts+1)*sizeof (*p)); in selecthost()
277 p = &hosts[nhosts++]; in selecthost()
288 if (hosts) in checkhost()
289 for (p = hosts; p < hosts+nhosts; p++) in checkhost()
302 for (p = hosts; p < hosts+nhosts; p++) { in showhosts()
/NextBSD/contrib/ntp/scripts/ntpsweep/
HDntpsweep.in49 my @hosts;
52 push @hosts, $opts->{host};
55 @hosts = read_hosts($hostsfile) if $hostsfile;
56 push @hosts, @{$opts->{'host-list'}};
67 scan_hosts(@hosts);
73 my (@hosts) = @_;
76 for $host (@hosts) {
83 my @hosts;
85 open my $hosts, $hostsfile
88 while (<$hosts>) {
[all …]
/NextBSD/contrib/netbsd-tests/lib/libpthread/
HDh_resolv.c50 static StringList *hosts = NULL; variable
86 sl_add(hosts, strdup(ptr)); in load()
98 size_t i = (random() & 0x0fffffff) % hosts->sl_cur; in resolvone()
99 char *host = hosts->sl_str[i]; in resolvone()
147 hosts = sl_init(); in main()
169 if (hosts->sl_cur == 0) in main()
174 if ((ask = calloc(hosts->sl_cur, sizeof(int))) == NULL) in main()
176 if ((got = calloc(hosts->sl_cur, sizeof(int))) == NULL) in main()
196 for (i = 0; i < (int)hosts->sl_cur; i++) { in main()
199 hosts->sl_str[i], ask[i], got[i]); in main()
[all …]
/NextBSD/crypto/openssl/crypto/x509/
HDx509_vpm.c104 if (mode == SET_HOST && id->hosts) { in int_x509_param_set_hosts()
105 string_stack_free(id->hosts); in int_x509_param_set_hosts()
106 id->hosts = NULL; in int_x509_param_set_hosts()
115 if (id->hosts == NULL && in int_x509_param_set_hosts()
116 (id->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts()
121 if (!sk_OPENSSL_STRING_push(id->hosts, copy)) { in int_x509_param_set_hosts()
123 if (sk_OPENSSL_STRING_num(id->hosts) == 0) { in int_x509_param_set_hosts()
124 sk_OPENSSL_STRING_free(id->hosts); in int_x509_param_set_hosts()
125 id->hosts = NULL; in int_x509_param_set_hosts()
152 if (paramid->hosts) { in x509_verify_param_zero()
[all …]
/NextBSD/contrib/dma/
HDdns.c139 struct mx_hostentry *hosts = NULL; in dns_get_mx_list() local
209 err = add_host(pref, outname, port, &hosts, &nhosts); in dns_get_mx_list()
251 err = add_host(0, host, port, &hosts, &nhosts); in dns_get_mx_list()
262 qsort(hosts, nhosts, sizeof(*hosts), sort_pref); in dns_get_mx_list()
264 *hosts[nhosts].host = 0; in dns_get_mx_list()
266 if (hosts != NULL) in dns_get_mx_list()
267 free(hosts); in dns_get_mx_list()
268 hosts = NULL; in dns_get_mx_list()
271 *he = hosts; in dns_get_mx_list()
275 if (hosts != NULL) in dns_get_mx_list()
[all …]
/NextBSD/contrib/netbsd-tests/lib/libc/gen/
HDt_sethostname.c43 static const char hosts[][MAXHOSTNAMELEN] = { variable
64 for (i = 0; i < __arraycount(hosts); i++) { in ATF_TC_BODY()
73 ATF_REQUIRE_EQ(sizeof(hosts[i]), MAXHOSTNAMELEN); in ATF_TC_BODY()
76 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i]) - 1) == 0); in ATF_TC_BODY()
79 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i])) == 0); in ATF_TC_BODY()
82 ATF_REQUIRE(strcmp(hosts[i], name) == 0); in ATF_TC_BODY()
/NextBSD/libexec/revnetgroup/
HDrevnetgroup.c80 int hosts = -1, i; in main() local
88 if (hosts != -1) { in main()
92 hosts = 0; in main()
95 if (hosts != -1) { in main()
99 hosts = 1; in main()
110 if (hosts == -1) in main()
149 if (hosts ? host && strcmp(host,"-") : user && strcmp(user, "-")) in main()
150 mstore(mtable, hosts ? host : user, gcur->key, domain); in main()
/NextBSD/contrib/ipfilter/lib/
HDload_url.c14 alist_t *hosts = NULL; in load_url() local
21 hosts = load_file(url); in load_url()
24 hosts = load_file(url); in load_url()
27 hosts = load_http(url); in load_url()
30 return hosts; in load_url()
HDalist_free.c11 alist_free(hosts) in alist_free() argument
12 alist_t *hosts; in alist_free()
16 for (a = hosts; a != NULL; a = next) {
/NextBSD/usr.sbin/rpcbind/
HDrpcbind.c96 char **hosts = NULL; variable
334 hosts = realloc(hosts, nhostsbak * sizeof(char *)); in init_transport()
336 hosts[0] = "*"; in init_transport()
339 hosts[nhostsbak - 1] = "127.0.0.1"; in init_transport()
341 hosts[nhostsbak - 1] = "::1"; in init_transport()
366 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport()
374 hosts[nhostsbak], host_addr) == 1) { in init_transport()
381 if (inet_pton(AF_INET6, hosts[nhostsbak], in init_transport()
388 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport()
409 if (strcmp("*", hosts[nhostsbak]) == 0) in init_transport()
[all …]
/NextBSD/lib/libc/tests/resolv/
HDresolv_test.c57 static StringList *hosts = NULL; variable
85 sl_add(hosts, strdup(ptr)); in load()
179 size_t i = (random() & 0x0fffffff) % hosts->sl_cur; in resolvone()
180 char *host = hosts->sl_str[i]; in resolvone()
235 hosts = sl_init(); in run_tests()
241 ATF_REQUIRE_MSG(0 < hosts->sl_cur, "0 hosts in %s", hostlist_file); in run_tests()
246 ask = calloc(hosts->sl_cur, sizeof(int)); in run_tests()
249 got = calloc(hosts->sl_cur, sizeof(int)); in run_tests()
268 for (i = 0; i < hosts->sl_cur; i++) { in run_tests()
271 hosts->sl_str[i], ask[i], got[i]); in run_tests()
[all …]
/NextBSD/share/man/man5/
HDMakefile28 hosts.5 \
29 hosts.equiv.5 \
30 hosts.lpd.5 \
71 MLINKS+=hosts.equiv.5 rhosts.5
86 bluetooth.hosts.5 \
/NextBSD/share/examples/etc/
HDREADME.examples26 hosts - see hosts(5)
27 hosts.allow - defines allow trusted hosts
28 hosts.equiv - defines system-wide trusted hosts (see ruserok(3))
29 hosts.lpd - defines trusted hosts for lpd(8)
/NextBSD/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
HDt_getaddrinfo.sh38 lcl=$( cat /etc/hosts | \
81 check_output basics hosts
96 check_output spec_fam hosts
136 check_output no_serv hosts
154 check_output sock_raw hosts
/NextBSD/crypto/openssh/
HDssh-keyscan.012 number of hosts. It was designed to aid in building and verifying
16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as
18 1,000 hosts can be collected in tens of seconds, even when some of those
19 hosts are down or do not run ssh. For scanning, one does not need login
30 Read hosts or ``addrlist namelist'' pairs from file, one per
32 read hosts or ``addrlist namelist'' pairs from the standard
50 Specifies the type of the key to fetch from the scanned hosts.
90 Find all hosts from the file ssh_hosts which have new or different keys
/NextBSD/usr.bin/rup/
HDrup.c64 } *hosts; variable
71 if (!hosts) in search_host()
74 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
89 hp->next = hosts; in remember_host()
90 hosts = hp; in remember_host()
/NextBSD/usr.bin/rusers/
HDrusers.c65 } *hosts; variable
72 if (hosts == NULL) in search_host()
75 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
90 hp->next = hosts; in remember_host()
91 hosts = hp; in remember_host()
/NextBSD/usr.sbin/bsdconfig/share/media/
HDhttpproxy.subr150 local connect_only="$1" hosts=
162 f_host_lookup "$proxy_host" hosts
166 [ "$hosts" ] && f_dialog_msgbox "$hosts"
169 elif [ ! "$hosts" ]; then
171 hosts="$proxy_host"
175 for host in $hosts; do
363 local dev="$1" file="$2" probe_type="$3" hosts=
378 f_host_lookup "$proxy_host" hosts
382 [ "$hosts" ] && f_dialog_msgbox "$hosts"
384 elif [ ! "$hosts" ]; then
[all …]
/NextBSD/contrib/ntp/scripts/ntptrace/
HDinvoke-ntptrace.texi44 * ntptrace max-hosts:: max-hosts option (-m)
69 -m, --max-hosts=num Maximum number of peers to trace
84 Output hosts as dotted-quad numeric format rather than converting to
86 @node ntptrace max-hosts
87 @subsection max-hosts option (-m)
88 @cindex ntptrace-max-hosts
/NextBSD/release/picobsd/floppy.tree/etc/
HDrc.conf.defaults70 echo "# $main_ether $hostname" >> /etc/hosts
71 echo "$the_ip $hostname" >> /etc/hosts
106 done < /etc/hosts
/NextBSD/sbin/natd/samples/
HDnatd.cf.sample54 # numeric addresses or hosts that are in /etc/hosts.
71 # ipconfig must apply any legal IP numbers that inside hosts
81 # for aweb.company.com, then external hosts attempting to access
86 # NAT, because inside hosts will go through the NAT to get to the legal

12345678910>>...12