Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/dflybsd-src/contrib/tcp_wrappers/
H A Deval.c54 char *eval_hostaddr(host) in eval_hostaddr() argument
55 struct host_info *host; in eval_hostaddr()
57 if (host->addr[0] == 0) {
58 strcpy(host->addr, unknown);
59 if (host->request->hostaddr != 0)
60 host->request->hostaddr(host);
62 return (host->addr);
67 char *eval_hostname(host) in eval_hostname() argument
68 struct host_info *host; in eval_hostname()
70 if (host->name[0] == 0) {
[all …]
H A Dscaffold.c50 struct hostent host; member
66 memset((char *) &hb->host, 0, sizeof(hb->host));
67 hb->host.h_length = hp->h_length;
68 hb->host.h_addr_list = hb->addr_list;
69 hb->host.h_addr_list[count] = 0;
70 data = (char *) (hb->host.h_addr_list + count + 1);
73 hb->host.h_addr_list[count] = data + hp->h_length * count;
74 memcpy(hb->host.h_addr_list[count], addr, hp->h_length);
76 return (&hb->host);
83 struct addrinfo *find_inet_addr(host) in find_inet_addr() argument
[all …]
H A Dsocket.c142 void sock_hostaddr(host) in sock_hostaddr() argument
143 struct host_info *host; in sock_hostaddr()
146 struct sockaddr *sin = host->sin;
157 getnameinfo(sin, salen, host->addr, sizeof(host->addr),
160 struct sockaddr_in *sin = host->sin;
163 STRN_CPY(host->addr, inet_ntoa(sin->sin_addr), sizeof(host->addr));
169 void sock_hostname(host) in sock_hostname() argument
170 struct host_info *host; in sock_hostname()
173 struct sockaddr *sin = host->sin;
214 STRN_CPY(host->name, hname, sizeof(host->name));
[all …]
H A Dhosts_access.c229 char *host; local
231 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
235 && host_match(host, request->server));
245 char *host; local
247 if ((host = split_at(tok + 1, '@')) == 0) { /* plain host */
250 return (host_match(host, request->client)
257 static int hostfile_match(path, host) in hostfile_match() argument
259 struct hosts_info *host;
266 while (fscanf(fp, "%s", tok) == 1 && !(match = host_match(tok, host)))
277 static int host_match(tok, host) in host_match() argument
[all …]
H A Dtli.c244 static void tli_hostaddr(host) in tli_hostaddr() argument
245 struct host_info *host; in tli_hostaddr()
247 struct request_info *request = host->request;
249 struct t_unitdata *unit = host->unit;
254 STRN_CPY(host->addr, uaddr, sizeof(host->addr));
261 static void tli_hostname(host) in tli_hostname() argument
262 struct host_info *host; in tli_hostname()
264 struct request_info *request = host->request;
266 struct t_unitdata *unit = host->unit;
297 char *uaddr = eval_hostaddr(host);
[all …]
/dflybsd-src/usr.bin/whois/
H A Dwhois.c88 const char *country, *host; in main() local
96 country = host = qnichost = NULL; in main()
101 host = ANICHOST; in main()
104 host = PNICHOST; in main()
107 host = ABUSEHOST; in main()
113 host = DNICHOST; in main()
116 host = GNICHOST; in main()
119 host = optarg; in main()
122 host = INICHOST; in main()
125 host = IANAHOST; in main()
[all …]
/dflybsd-src/bin/cpdup/scripts/
H A Ddo_mirror_host17 set host = "$argv[1]"
20 if ( ! -d $backup_nfs/$host ) then
24 if ( ! -d $backup_path/mirrors/$host ) then
25 mkdir $backup_path/mirrors/$host
30 set target = $host.$date
40 if ( -f $backup_path/mirrors/$host.log ) then
41 ln $backup_path/mirrors/$host.log $backup_path/mirrors/$target/INPROGRESS
49 foreach fs ( $backup_nfs/$host/* )
70 …echo "cpdup -f -i0 -s0 -I -H $backup_path/mirrors/$host/$dirname $fs $backup_path/mirrors/$target/…
71 …cpdup -f -i0 -s0 -I -H $backup_path/mirrors/$host/$dirname $fs $backup_path/mirrors/$target/$dirna…
[all …]
H A Ddo_remote_host16 set host = "$argv[1]"
19 if ( ! -d $backup_nfs/$host ) then
23 if ( ! -d $backup_path/mirrors/$host ) then
24 echo "No backup found for $host"
30 set source = `readlink $backup_path/mirrors/$host`
32 echo "No backup found for $host at $backup_path/mirrors/$host"
42 set hlbase = `ssh $remote_host -n "readlink ${remote_path}/mirrors/$host"`
44 echo "Missing softlink at ${remote_host}:${remote_path}/mirrors/${host}"
102 …ssh $remote_host -n "rm -f ${remote_path}/mirrors/$host; ln -s $basename ${remote_path}/mirrors/$h…
H A Ddo_mirror14 set host = ${i:t}
16 ./do_mirror_host $host $argv >& $backup_path/mirrors/${host}.log &
22 set host = ${i:t}
24 echo -n "${host}: "
25 tail -1 $backup_path/mirrors/${host}.log
H A Ddo_remote14 set host = ${i:t}
16 ./do_remote_host $host $argv >& $backup_path/mirrors/remote.${host}.log &
22 set host = ${i:t}
24 echo -n "${host}: "
25 tail -1 $backup_path/mirrors/remote.${host}.log
/dflybsd-src/libexec/dma/
H A Dnet.c327 h->host, h->addr, h->pref); in open_connection()
332 h->host, h->addr); in open_connection()
338 h->host, h->addr); in open_connection()
464 deliver_to_host(struct qitem *it, struct mx_hostentry *host) in deliver_to_host() argument
477 fd = open_connection(host); in deliver_to_host()
486 host->host, host->addr, c, neterr); \ in deliver_to_host()
488 host->host, host->addr, c, neterr); \ in deliver_to_host()
493 host->host, host->addr, c, neterr); \ in deliver_to_host()
522 host->host, host->addr, neterr); in deliver_to_host()
531 if (strcmp(a->host, host->host) == 0) { in deliver_to_host()
[all …]
H A Dconf.c128 au->host = strsep(&data, DP); in parse_authfile()
132 au->host == NULL || in parse_authfile()
204 char *user = NULL, *host = NULL; in parse_conf() local
206 host = strrchr(data, '@'); in parse_conf()
207 *host = 0; in parse_conf()
208 host++; in parse_conf()
211 host = data; in parse_conf()
213 if (host && *host == 0) in parse_conf()
214 host = NULL; in parse_conf()
217 config.masquerade_host = host; in parse_conf()
H A Ddns.c66 add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t *ps) in add_host() argument
79 switch (getaddrinfo(host, servname, &hints, &res0)) { in add_host()
109 strlcpy(p->host, host, sizeof(p->host)); in add_host()
132 dns_get_mx_list(const char *host, int port, struct mx_hostentry **he, int no_mx) in dns_get_mx_list() argument
150 searchhost = host; in dns_get_mx_list()
252 err = add_host(0, host, port, &hosts, &nhosts); in dns_get_mx_list()
265 *hosts[nhosts].host = 0; in dns_get_mx_list()
287 for (p = he; *p->host != 0; p++) { in main()
288 printf("%d\t%s\t%s\n", p->pref, p->host, p->addr); in main()
/dflybsd-src/lib/libc/net/
H A Dgetnameinfo.c75 char * __restrict host, size_t hostlen, char * __restrict serv, in getnameinfo() argument
84 return getnameinfo_inet(sa, salen, host, hostlen, serv, in getnameinfo()
87 return getnameinfo_link(sa, salen, host, hostlen, serv, in getnameinfo()
116 getnameinfo_inet(const struct sockaddr *sa, socklen_t salen, char *host, in getnameinfo_inet() argument
211 if (host == NULL || hostlen == 0) { in getnameinfo_inet()
231 if ((error = ip6_parsenumeric(sa, addr, host, in getnameinfo_inet()
244 strlcpy(host, numaddr, hostlen); in getnameinfo_inet()
267 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
278 if ((error = ip6_parsenumeric(sa, addr, host, in getnameinfo_inet()
286 if (inet_ntop(afd->a_af, addr, host, in getnameinfo_inet()
[all …]
/dflybsd-src/sys/dev/drm/
H A Ddrm_mipi_dsi.c131 static struct mipi_dsi_device *mipi_dsi_device_alloc(struct mipi_dsi_host *host)
139 dsi->host = host;
141 dsi->dev.parent = host->dev;
151 struct mipi_dsi_host *host = dsi->host;
153 dev_set_name(&dsi->dev, "%s.%d", dev_name(host->dev), dsi->channel);
160 of_mipi_dsi_device_add(struct mipi_dsi_host *host, struct device_node *node)
162 struct device *dev = host->dev;
182 return mipi_dsi_device_register_full(host, &info);
186 of_mipi_dsi_device_add(struct mipi_dsi_host *host, struct device_node *node)
205 mipi_dsi_device_register_full(struct mipi_dsi_host *host,
[all …]
/dflybsd-src/crypto/openssh/
H A Dauth-sia.c57 const char *host; in sys_auth_passwd() local
60 host = get_canonical_hostname(options.use_dns); in sys_auth_passwd()
65 if (sia_ses_init(&ent, saved_argc, saved_argv, host, authctxt->user, in sys_auth_passwd()
71 authctxt->user, host); in sys_auth_passwd()
87 const char *host; in session_setup_sia() local
89 host = get_canonical_hostname(options.use_dns); in session_setup_sia()
91 if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, in session_setup_sia()
103 pw->pw_name, host); in session_setup_sia()
107 pw->pw_name, host); in session_setup_sia()
H A Dhostfile.c116 host_hash(const char *host, const char *name_from_hostfile, u_int src_len) in host_hash() argument
138 ssh_hmac_update(ctx, host, strlen(host)) < 0 || in host_hash()
225 const char *host; member
252 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey()
266 load_hostkeys_file(struct hostkeys *hostkeys, const char *host, in load_hostkeys_file() argument
272 ctx.host = host; in load_hostkeys_file()
276 if ((r = hostkeys_foreach_file(path, f, record_hostkey, &ctx, host, in load_hostkeys_file()
282 debug3_f("loaded %lu keys from %s", ctx.num_loaded, host); in load_hostkeys_file()
286 load_hostkeys(struct hostkeys *hostkeys, const char *host, const char *path, in load_hostkeys() argument
296 load_hostkeys_file(hostkeys, host, path, f, note); in load_hostkeys()
[all …]
H A Dauth-rhosts.c88 char *host, *user, *cp; in check_rhosts_file() local
127 host = hostbuf; in check_rhosts_file()
132 if (host[0] == '-') { in check_rhosts_file()
134 host++; in check_rhosts_file()
135 } else if (host[0] == '+') in check_rhosts_file()
136 host++; in check_rhosts_file()
145 if (!host[0] || !user[0]) { in check_rhosts_file()
152 if (host[0] == '@') { in check_rhosts_file()
153 if (!innetgr(host + 1, hostname, NULL, NULL) && in check_rhosts_file()
154 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file()
[all …]
H A Dsshconnect.c90 const char *host, const char *host_arg, int port) in expand_proxy_command() argument
99 "h", host, in expand_proxy_command()
114 ssh_proxy_fdpass_connect(struct ssh *ssh, const char *host, in ssh_proxy_fdpass_connect() argument
130 host, host_arg, port); in ssh_proxy_fdpass_connect()
196 ssh_proxy_connect(struct ssh *ssh, const char *host, const char *host_arg, in ssh_proxy_connect() argument
213 host, host_arg, port); in ssh_proxy_connect()
448 ssh_connect_direct(struct ssh *ssh, const char *host, struct addrinfo *aitop, in ssh_connect_direct() argument
494 host, ntop, strport); in ssh_connect_direct()
526 host, strport, errno == 0 ? "failure" : strerror(errno)); in ssh_connect_direct()
546 ssh_connect(struct ssh *ssh, const char *host, const char *host_arg, in ssh_connect() argument
[all …]
/dflybsd-src/lib/libfetch/
H A Dcommon.c314 const char *host, *service; in fetch_resolve() local
341 host = hbuf; in fetch_resolve()
343 host = hb; in fetch_resolve()
366 if ((err = getaddrinfo(host, service, &hints, &res)) != 0) { in fetch_resolve()
403 fetch_socks5_init(conn_t *conn, const char *host, int port, int verbose) in fetch_socks5_init() argument
415 fetch_info("Initializing SOCKS5 connection: %s:%d", host, port); in fetch_socks5_init()
454 if (strlen(host) > FQDN_SIZE) { in fetch_socks5_init()
458 *ptr++ = strlen(host); in fetch_socks5_init()
459 strncpy(ptr, host, strlen(host)); in fetch_socks5_init()
460 ptr = ptr + strlen(host); in fetch_socks5_init()
[all …]
/dflybsd-src/contrib/gcc-4.7/gcc/doc/
H A Dconfigterms.texi18 (@dfn{host}), and the machine that GCC will produce code for
20 @option{--build=}, @option{--host=}, and @option{--target=}.
22 Specifying the host without specifying the build should be avoided, as
23 @command{configure} may (and once did) assume that the host you specify
26 If build, host, and target are all the same, this is called a
27 @dfn{native}. If build and host are the same but target is different,
28 this is called a @dfn{cross}. If build, host, and target are all
31 on the build at that time). If host and target are the same, but build
33 different system. Some people call this a @dfn{host-x-host},
35 are the same, but host is different, you are using a cross compiler to
[all …]
/dflybsd-src/usr.bin/tip/
H A Dremote.c97 getremcap(char *host) in getremcap() argument
115 if ((stat = cgetent(&bp, db_array, host)) < 0) { in getremcap()
117 (host[0] == '/' && access(DV = host, R_OK | W_OK) == 0)) { in getremcap()
119 HO = host; in getremcap()
129 warnx("unknown host %s", host); in getremcap()
153 fprintf(stderr, "%s: missing device spec\n", host); in getremcap()
159 fprintf(stderr, "%s: missing phone number\n", host); in getremcap()
171 HO = host; in getremcap()
245 getremote(char *host) in getremote() argument
252 if (host == NULL && (host = getenv("HOST")) == NULL) in getremote()
[all …]
/dflybsd-src/usr.sbin/arp/
H A Darp.c76 static int delete(char *host, char *info);
79 static int get(char *host);
277 char *host = argv[0], *eaddr = argv[1]; in set() local
284 addr->sin_addr.s_addr = inet_addr(host); in set()
286 if (!(hp = gethostbyname(host))) { in set()
287 warnx("%s: %s", host, hstrerror(h_errno)); in set()
311 host); in set()
329 warn("%s", host); in set()
344 printf("set: can only proxy for %s\n", host); in set()
357 printf("cannot intuit interface index and type for %s\n", host); in set()
[all …]
/dflybsd-src/usr.bin/logger/
H A Dlogger.c77 char *tag, *host, buf[1024]; in main() local
80 host = NULL; in main()
102 host = optarg; in main()
135 logmessage(pri, host, buf); in main()
139 logmessage(pri, host, *argv++); in main()
148 logmessage(pri, host, buf); in main()
151 logmessage(pri, host, buf); in main()
159 logmessage(int pri, const char *host, const char *buf) in logmessage() argument
167 if (host == NULL) { in logmessage()
177 error = getaddrinfo(host, "syslog", &hints, &res); in logmessage()
[all …]
/dflybsd-src/usr.bin/rup/
H A Drup.c93 char *host; in rstat_reply() local
103 host = hp->h_name; in rstat_reply()
105 host = inet_ntoa(raddrp->sin_addr); in rstat_reply()
108 if (strlen(host) > HOST_WIDTH) in rstat_reply()
109 host[HOST_WIDTH] = '\0'; in rstat_reply()
111 printf("%-*s\t", HOST_WIDTH, host); in rstat_reply()
168 onehost(const char *host) in onehost() argument
176 hp = gethostbyname(host); in onehost()
182 rstat_clnt = clnt_create(host, RSTATPROG, RSTATVERS_TIME, "udp"); in onehost()
184 clnt_pcreateerror(host); in onehost()
[all …]

12345678910>>...18