Searched refs:host (Results 101 - 125 of 1146) sorted by relevance

1234567891011>>

/netbsd-6-1-5-RELEASE/distrib/utils/libhack/
H A Dgethost.c86 static struct hostent host; variable in typeref:struct:hostent
132 host.h_name = (char *)name;
133 host.h_aliases = host_aliases;
135 host.h_addrtype = AF_INET;
136 host.h_length = sizeof(u_int32_t);
139 host.h_addr_list = h_addr_ptrs;
140 return (&host);
146 /* XXX - Force host table lookup. */
166 /* XXX - Force host table lookup. */
215 host
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/tip/
H A Dremote.c50 * Attributes to be gleened from remote host description
73 getremcap(char *host) argument
91 if ((status = cgetent(&bp, db_array, host)) < 0) {
93 (host[0] == '/' && access(DV = host, R_OK | W_OK) == 0)) {
95 HO = host;
105 warnx("unknown host %s", host);
108 warnx("can't open host description file");
111 warnx("possible reference loop in host "
200 getremote(char *host) argument
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/tcpdchk/
H A Dscaffold.c48 /* find_inet_addr - find all addresses for this host, result to free() */
50 struct addrinfo *find_inet_addr(host, flags)
51 char *host;
60 error = getaddrinfo(host, "0", &hints, &res);
62 tcpd_warn("%s: %s", host, gai_strerror(error));
66 if (res->ai_canonname && STR_NE(host, res->ai_canonname)) {
67 tcpd_warn("%s: hostname alias", host);
75 int check_dns(host)
76 char *host;
83 if ((res0 = find_inet_addr(host,
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dkrbhst.c292 append_host_hostinfo(struct krb5_krbhst_data *kd, struct krb5_krbhst_info *host) argument
297 if(h->proto == host->proto &&
298 h->port == host->port &&
299 strcmp(h->hostname, host->hostname) == 0) {
300 _krb5_free_krbhst_info(host);
303 *kd->end = host;
304 kd->end = &host->next;
309 const char *host, int def_port, int port)
313 hi = parse_hostspec(context, kd, host, def_port, port);
322 * return a readable representation of `host' i
308 append_host_string(krb5_context context, struct krb5_krbhst_data *kd, const char *host, int def_port, int port) argument
326 krb5_krbhst_format_string(krb5_context context, const krb5_krbhst_info *host, char *hostname, size_t hostlen) argument
372 krb5_krbhst_get_addrinfo(krb5_context context, krb5_krbhst_info *host, struct addrinfo **ai) argument
424 get_next(struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
491 char *host = NULL; local
556 char host[NI_MAXHOST], port[NI_MAXSERV]; local
633 kdc_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
698 admin_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
752 kpasswd_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
812 krb524_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
963 krb5_krbhst_next(krb5_context context, krb5_krbhst_handle handle, krb5_krbhst_info **host) argument
985 krb5_krbhst_info *host; local
1025 char host[MAXHOSTNAMELEN]; local
[all...]
H A Dtest_plugin.c92 char host[MAXHOSTNAMELEN]; local
116 while(krb5_krbhst_next_as_string(context, handle, host, sizeof(host)) == 0){
118 if (strcmp(host, "127.0.0.2") != 0)
119 krb5_errx(context, 1, "wrong address: %s", host);
122 krb5_errx(context, 1, "failed to find host");
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dgetnameinfo_verified.c50 char *host, size_t hostlen,
61 if (host == NULL)
69 ret = getnameinfo (sa, salen, host, hostlen, serv, servlen,
76 ret = getaddrinfo (host, serv, &hints, &ai);
93 ret = getnameinfo (sa, salen, host, hostlen, serv, servlen,
49 getnameinfo_verified(const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument
/netbsd-6-1-5-RELEASE/dist/ipf/ipsend/
H A Dlarp.c28 * lookup host and return
32 int resolve(host, address)
33 char *host, *address;
38 add = inet_addr(host);
41 if (!(hp = gethostbyname(host)))
43 fprintf(stderr, "unknown host: %s\n", host);
/netbsd-6-1-5-RELEASE/usr.bin/rup/
H A Drup.c61 static int printtime; /* print the remote host(s)'s time */
137 const char *host; member in struct:rup_data
166 return strcmp(d1->host, d2->host);
181 remember_rup_data(const char *host, struct statstime *st) argument
196 rup_data[rup_data_idx].host = strdup(host);
206 char host[NI_MAXHOST]; local
211 if (getnameinfo(sa, (socklen_t)sa->sa_len, host, sizeof host,
229 print_rup_data(const char *host, statstime *host_stat) argument
288 onehost(char *host) argument
[all...]
/netbsd-6-1-5-RELEASE/tests/lib/libc/net/getaddrinfo/
H A Dno_serv_v4.exp1 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 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0
11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0
13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empt
[all...]
H A Dsock_raw_v4v6.exp1 arg: flags 0x2 family 0 socktype 3 protocol 0 addrlen 0 host localhost serv (empty)
2 ai1: flags 0x2 family 24 socktype 3 protocol 0 addrlen 28 host ::1 serv 0
3 ai2: flags 0x2 family 2 socktype 3 protocol 0 addrlen 16 host 127.0.0.1 serv 0
5 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv (empty)
6 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0
7 ai2: flags 0x2 family 2 socktype 3 protocol 59 addrlen 16 host 127.0.0.1 serv 0
9 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv 80
11 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv www
13 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host ::1 serv (empty)
14 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/scripts/
H A Dntpsweep.in37 "host=s" => \$single_host,
55 <file>|[--host <hostname>]
58 $program prints per host given in <file> the NTP stratum level, the
70 --host <hostname>
71 Speficy a single host, bypassing the need for a hosts file.
73 Recursively list all peers a host synchronizes to.
82 $program --host some.host --peers --maxlevel 4
129 my($host, $level, @trace) = @_;
138 if (&item_in_list($host,
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/testsuite/lib/
H A Dada.exp30 if ![is_remote host] {
73 if [info exists target_info(host,name)] {
74 set host [host_info name];
76 set host "unix";
165 if [board_info $host exists cflags_for_target] {
166 append add_flags " [board_info $host cflags_for_target]";
205 if ![is_remote host] {
319 if [is_remote host] {
321 set file [remote_download host $x];
323 warning "Unable to download $x to host
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/checkmount/
H A Dcheckmount_default.c59 fixmount_check_mount(char *host, struct in_addr hostaddr, char *path) argument
93 is_same_host(ment->mnt_fsname, host, hostaddr))
106 found = fixmount_check_mount(host, hostaddr, path);
H A Dcheckmount_osf.c55 fixmount_check_mount(char *host, struct in_addr hostaddr, char *path) argument
72 * accepted: host:/path or /path@host
79 host, hostaddr))
85 is_same_host(delim + 1, host, hostaddr))
H A Dcheckmount_svr4.c55 fixmount_check_mount(char *host, struct in_addr hostaddr, char *path) argument
75 is_same_host(ment.mnt_fsname, host, hostaddr))
97 found = fixmount_check_mount(host, hostaddr, path);
H A Dcheckmount_ultrix.c55 fixmount_check_mount(char *host, struct in_addr hostaddr, char *path) argument
71 is_same_host(ment.fd_devname, host, hostaddr))
/netbsd-6-1-5-RELEASE/libexec/rexecd/unit-tests/
H A Drexec.c50 char *host = __UNCONST("localhost"); local
59 host = optarg;
77 if ((s = rexec(&host, sv->s_port, user, pass, cmd, NULL)) == -1)
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/util/
H A Dmyaddrinfo.h173 #define hostname_to_sockaddr(host, serv, sock, res) \
174 hostname_to_sockaddr_pf((host), PF_UNSPEC, (serv), (sock), (res))
180 #define HOSTNAME_TO_SOCKADDR_PF(host, pf, serv, sock, res) \
183 _aierr = hostname_to_sockaddr_pf((host), (pf), (serv), (sock), (res)); \
188 #define HOSTNAME_TO_SOCKADDR(host, serv, sock, res) \
189 HOSTNAME_TO_SOCKADDR_PF((host), PF_UNSPEC, (serv), (sock), (res))
191 #define HOSTADDR_TO_SOCKADDR(host, serv, sock, res) \
194 _aierr = hostaddr_to_sockaddr((host), (serv), (sock), (res)); \
199 #define SOCKADDR_TO_HOSTADDR(sa, salen, host, port, sock) \
202 _aierr = sockaddr_to_hostaddr((sa), (salen), (host), (por
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/innetgr/
H A Dinnetgr.c48 "usage: %s [-v] [-d domain] [-h host] [-u user] netgroup\n",
60 char *host = NULL; local
69 host = optarg;
85 ok = innetgr(argv[optind], host, user, domain);
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/scripts/
H A Dexpn.in113 $0 = "$av0 - lookup host FQDN and IP addr";
117 $usage = "Usage: $av0 [-1avwd] user[\@host] [user2[\@host2] ...]";
167 # do we already have an mx record for this host?
443 # there is another host to redirect to!
472 # %fallback{"$user *** $host"} tracks what is able to fallback
473 # %fellback{"$user *** $host"} tracks what has fallen back
479 local($method,$user,*host,*fall_table,*fellback) = @_;
491 print "U: $user H: $host\n";
494 $us = "$user *** $host";
509 print "Oldhost($host,
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/netpgp/dist/src/hkpd/
H A Dmain.c81 char *host; local
92 host = strdup("localhost");
115 (void) free(host);
116 host = strdup(optarg);
141 (sock4 = hkpd_sock_bind(host, port, 4)) < 0) {
145 (sock6 = hkpd_sock_bind(host, port, 6)) < 0) {
/netbsd-6-1-5-RELEASE/dist/dhcp/client/
H A Ddhclient.conf1 send host-name "andare.fugue.com";
7 domain-name, domain-name-servers, host-name;
28 option host-name "andare.swiftmedia.com";
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/binutils/testsuite/binutils-all/
H A Dsize.exp24 if ![is_remote host] {
38 if [is_remote host] {
39 set testfile [remote_download host tmpdir/bintest.o]
/netbsd-6-1-5-RELEASE/sbin/mount_portal/
H A Dpt_tcp.c59 * Key will be tcp/host/port[/"priv"]
61 * requested host and port.
68 char host[MAXHOSTNAMELEN]; local
78 if (q == 0 || (size_t)(q - p) >= sizeof(host))
81 if (strlcpy(host, p, sizeof(host)) >= sizeof(host))
106 if (getaddrinfo(host, port, &hints, &res) != 0)
/netbsd-6-1-5-RELEASE/usr.bin/finger/
H A Dnet.c72 char *host; local
78 if (!(host = strrchr(name, '@')))
80 *host++ = '\0';
85 error = getaddrinfo(host, "finger", &hints, &res0);
87 warnx("%s: %s", gai_strerror(error), host);
114 /* have network connection; identify the host connected with */
115 (void)printf("[%s]\n", res0->ai_canonname ? res0->ai_canonname : host);

Completed in 165 milliseconds

1234567891011>>