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

1234567891011>>

/freebsd-9.3-release/libexec/revnetgroup/
H A Drevnetgroup.c77 char *host, *user, *domain; local
148 while(__getnetgrent(&host, &user, &domain) != 0) {
149 if (hosts ? host && strcmp(host,"-") : user && strcmp(user, "-"))
150 mstore(mtable, hosts ? host : user, gcur->key, domain);
/freebsd-9.3-release/crypto/openssh/
H A Dsshconnect.c7 * Code to connect to a remote host, and to perform the client side of the
88 const char *host, int port)
94 ret = percent_expand(tmp, "h", host, "p", strport,
105 ssh_proxy_fdpass_connect(const char *host, u_short port, argument
121 host, port);
184 ssh_proxy_connect(const char *host, u_short port, const char *proxy_command) argument
200 host, port);
440 * Opens a TCP/IP connection to the remote server on the given host.
441 * The address of the remote host will be returned in hostaddr.
447 * and %p substituted for host an
87 expand_proxy_command(const char *proxy_command, const char *user, const char *host, int port) argument
451 ssh_connect_direct(const char *host, struct addrinfo *aitop, struct sockaddr_storage *hostaddr, u_short port, int family, int connection_attempts, int *timeout_ms, int want_keepalive, int needpriv) argument
529 ssh_connect(const char *host, struct addrinfo *addrs, struct sockaddr_storage *hostaddr, u_short port, int family, int connection_attempts, int *timeout_ms, int want_keepalive, int needpriv) argument
732 check_host_cert(const char *host, const Key *host_key) argument
837 char *ip = NULL, *host = NULL; local
1246 verify_host_key(char *host, struct sockaddr *hostaddr, Key *host_key) argument
1301 char *host; local
[all...]
H A Dcanohost.c6 * Functions for returning the canonical host name of the remote site.
42 * Return the canonical name of the host at the other end of the socket. The
78 /* Map the IP address to a host name. */
105 * address actually is an address of this host. This is
130 /* Address not found for the host name. */
204 * Return the canonical name of the host in the other side of the current
205 * connection. The host name is cached, so it is efficient to call this
212 char *host; local
224 host = get_remote_hostname(packet_get_connection_in(), use_dns);
226 host
300 char *host, myname[NI_MAXHOST]; local
[all...]
H A Dmatch.c174 * Tries to match the host name (which must be in all lowercase) against the
180 match_hostname(const char *host, const char *pattern, u_int len) argument
182 return match_pattern_list(host, pattern, len, 1);
191 match_host_and_ip(const char *host, const char *ipaddr, argument
203 if ((mhost = match_hostname(host, patterns, strlen(patterns))) == -1)
215 match_user(const char *user, const char *host, const char *ipaddr, argument
229 ret = match_host_and_ip(host, ipaddr, p);
H A Dhostfile.c113 host_hash(const char *host, const char *name_from_hostfile, u_int src_len) argument
128 /* Extract salt from known host entry */
136 ssh_hmac_update(ctx, host, strlen(host)) < 0 ||
182 hostfile_check_key(int bits, const Key *key, const char *host, argument
188 logit("Warning: %s, line %lu: keysize mismatch for host %s: "
190 filename, linenum, host, BN_num_bits(key->rsa->n), bits);
242 load_hostkeys(struct hostkeys *hostkeys, const char *host, const char *path) argument
254 debug3("%s: loading entries for host \"%.100s\" from file \"%s\"",
255 __func__, host, pat
459 add_host_to_hostfile(const char *filename, const char *host, const Key *key, int store_hash) argument
[all...]
H A Dhostfile.h26 char *host; member in struct:hostkey_entry
H A Dsshlogin.c7 * easily use something like login -p -h host -f user, because there are
69 * The host the user logged in from will be returned in buf.
127 const char *host, struct sockaddr *addr, socklen_t addrlen)
134 li = login_alloc_entry(pid, user, host, tty);
143 const char *host, struct sockaddr *addr, socklen_t addrlen)
147 li = login_alloc_entry(pid, user, host, ttyname);
126 record_login(pid_t pid, const char *tty, const char *user, uid_t uid, const char *host, struct sockaddr *addr, socklen_t addrlen) argument
142 record_utmp_only(pid_t pid, const char *ttyname, const char *user, const char *host, struct sockaddr *addr, socklen_t addrlen) argument
/freebsd-9.3-release/lib/libutil/
H A Dlogin_ok.c177 login_hostok(login_cap_t *lc, const char *host, const char *ip, argument
183 ((host != NULL && *host != '\0') || (ip != NULL && *ip != '\0'))) {
187 if (hl != NULL && !login_str2inlist(hl, host, ip, FNM_CASEFOLD))
188 rc = 0; /* host or IP not in allow list */
192 if (hl != NULL && login_str2inlist(hl, host, ip, FNM_CASEFOLD))
193 rc = 0; /* host or IP in deny list */
203 * Determine whether or not login from a host is ok
207 auth_hostok(login_cap_t *lc, const char *host, const char *ip) argument
209 return login_hostok(lc, host, i
[all...]
H A Drealhostname.c49 realhostname(char *host, size_t hsize, const struct in_addr *ip) argument
74 strncpy(host, trimmed, hsize);
81 strncpy(host, inet_ntoa(*ip), hsize);
99 realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen) argument
184 strncpy(host, buf, hsize);
194 strncpy(host, buf, hsize);
/freebsd-9.3-release/usr.bin/finger/
H A Dnet.c65 char *host; local
69 host = strrchr(name, '@');
70 if (host == 0)
72 *host++ = '\0';
80 error = getaddrinfo(host, "finger", &hint, &ai0);
82 warnx("%s: %s", host, gai_strerror(error));
90 printf("[%s]\n", host);
/freebsd-9.3-release/crypto/openssl/crypto/ocsp/
H A Docsp_lib.c172 * Parse a URL and split it up into host, port and path components and
181 char *host, *port; local
215 host = p;
232 p = host;
233 if (host[0] == '[') {
235 host++;
236 p = strchr(host, ']');
259 *phost = BUF_strdup(host);
/freebsd-9.3-release/contrib/tcp_wrappers/
H A Dhosts_access.c3 * host (or domain) names, NIS (host) netgroup names, IP addresses (or
105 /* hosts_access - host access control facility */
242 char *host; local
244 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
246 } else { /* daemon@host */
248 && host_match(host, request->server));
258 char *host; local
260 if ((host = split_at(tok + 1, '@')) == 0) { /* plain host */
[all...]
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftp/
H A Dkrb4.c212 char *service, char *host, int checksum)
219 strlcpy(inst, krb_get_phost(host), sizeof(inst));
220 strlcpy(realm, krb_realmofhost(host), sizeof(realm));
225 strlcpy(inst, krb_get_phost(host), sizeof(inst));
226 strlcpy(realm, krb_realmofhost(host), sizeof(realm));
235 krb4_auth(void *app_data, char *host) argument
249 ret = mk_auth(d, &adat, "ftp", host, checksum);
251 ret = mk_auth(d, &adat, "rcmd", host, checksum);
261 if (krb_get_our_ip_for_realm(krb_realmofhost(host),
265 krb_realmofhost(host));
211 mk_auth(struct krb4_data *d, KTEXT adat, char *service, char *host, int checksum) argument
[all...]
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/
H A Dkrb4.c212 char *service, char *host, int checksum)
219 strlcpy(inst, krb_get_phost(host), sizeof(inst));
220 strlcpy(realm, krb_realmofhost(host), sizeof(realm));
225 strlcpy(inst, krb_get_phost(host), sizeof(inst));
226 strlcpy(realm, krb_realmofhost(host), sizeof(realm));
235 krb4_auth(void *app_data, char *host) argument
249 ret = mk_auth(d, &adat, "ftp", host, checksum);
251 ret = mk_auth(d, &adat, "rcmd", host, checksum);
261 if (krb_get_our_ip_for_realm(krb_realmofhost(host),
265 krb_realmofhost(host));
211 mk_auth(struct krb4_data *d, KTEXT adat, char *service, char *host, int checksum) argument
[all...]
/freebsd-9.3-release/usr.sbin/rpc.umntall/
H A Drpc.umntall.c61 char *host, *path; local
65 host = path = NULL;
70 host = optarg;
105 if (host == NULL && path == NULL) {
130 /* Remove all entries for this host + path. */
137 if (host == NULL && path != NULL)
141 /* Do a RPC UMNTALL for this specific host */
142 success = do_umntall(host);
144 warnx("umntall RPC for %s succeeded", host);
150 success = do_umount(host, pat
[all...]
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Diptest.c94 char *name = argv[0], host[MAXHOSTNAMELEN + 1]; local
150 gethostname(host, sizeof(host));
151 host[sizeof(host) - 1] = '\0';
152 src = host;
/freebsd-9.3-release/contrib/sendmail/libmilter/
H A Dexample.c51 char host[512]; local
67 if (gethostname(host, sizeof host) < 0)
68 snprintf(host, sizeof host, "localhost");
74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host);
/freebsd-9.3-release/libexec/bootpd/tools/bootpef/
H A Dbootpef.c28 * Makes an "Extension File" for each host entry that
90 static void mktagfile(struct host *);
117 "usage: $s [ -c chdir ] [-d level] [-f configfile] [host...]\n");
134 struct host *hp;
235 /* If there are host names on the command line, do only those. */
242 hp = (struct host *) hash_Lookup(nmhashtable,
259 /* No host names specified. Do them all. */
260 hp = (struct host *) hash_FirstEntry(nmhashtable);
263 hp = (struct host *) hash_NextEntry(nmhashtable);
272 * Make a "TAG 18" file for this host
[all...]
/freebsd-9.3-release/usr.sbin/arp/
H A Darp.c90 static int delete(char *host, int do_proxy);
93 static int get(char *host);
98 static struct sockaddr_inarp *getaddr(char *host);
250 * the address of the host and returns a pointer to the
254 getaddr(char *host) argument
262 reply.sin_addr.s_addr = inet_addr(host);
264 if (!(hp = gethostbyname(host))) {
265 warnx("%s: %s", host, hstrerror(h_errno));
306 char *host = argv[0], *eaddr = argv[1]; local
316 dst = getaddr(host);
406 get(char *host) argument
428 delete(char *host, int do_proxy) argument
567 const char *host; local
[all...]
/freebsd-9.3-release/sys/arm/at91/
H A Dat91_mci.c88 struct mmc_host host; member in struct:at91_mci_softc
178 device_set_desc(dev, "MCI mmc/sd host bridge");
239 sc->host.f_min = at91_master_clock / 512;
240 sc->host.f_min = 375000;
241 sc->host.f_max = at91_master_clock / 2;
242 if (sc->host.f_max > 50000000)
243 sc->host.f_max = 50000000; /* Limit to 50MHz */
245 sc->host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340;
246 sc->host.caps = 0;
248 sc->host
347 struct mmc_host *host; local
[all...]
/freebsd-9.3-release/usr.sbin/periodic/
H A Dperiodic.sh28 host=`hostname`
29 export host
43 *) pipe="mail -E -s '$host ${arg##*/} run output' $output";;
/freebsd-9.3-release/contrib/amd/fsinfo/
H A Dfsi_data.h55 typedef struct host host; typedef in typeref:struct:host
86 * A host
88 struct host { struct
94 char *h_hostname; /* The full name of the host */
95 char *h_lochost; /* The name of the host with local domains stripped */
96 char *h_hostpath; /* The filesystem path to the host (cf
139 host *d_host;
/freebsd-9.3-release/contrib/lukemftpd/src/
H A Dlogwtmp.c87 ftpd_logwtmp(const char *line, const char *name, const char *host) argument
97 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
118 ftpd_logwtmpx(const char *line, const char *name, const char *host, argument
129 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
/freebsd-9.3-release/contrib/opie/libopie/
H A Dlogwtmp.c115 VOIDRET opielogwtmp FUNCTION((line, name, host), char *line AND char *name AND char *host AND char *id)
156 strncpy(ut.ut_host, host, sizeof(ut.ut_host));
172 strncpy(utx.ut_host, host, sizeof(utx.ut_host));
/freebsd-9.3-release/etc/rc.d/
H A Dhostname42 # If we are not inside a jail, set the host name if it is not already set.
43 # If we are inside a jail, set the host name even if it is already set,
57 -n "`/bin/kenv dhcp.host-name 2> /dev/null`" ]; then
58 hostname=`/bin/kenv dhcp.host-name`

Completed in 305 milliseconds

1234567891011>>