Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 252) sorted by relevance

1234567891011

/dragonfly/contrib/dhcpcd/hooks/
H A D30-hostname1 # Set the hostname from DHCP data if required
3 # A hostname can either be a short hostname or a FQDN.
11 # DHCPv6 has no hostname option.
29 hostname
31 sysctl -n kern.hostname
33 sysctl -n kernel.hostname
43 hostname "$1"
50 hostname "$1"
66 hostname="$(_hostname)"
84 [ "$hostname" = \
[all …]
/dragonfly/etc/mail/
H A Dvirtusertable.sample4 # Map one or all usernames at a source hostname to a specific (or the same)
5 # username at another target hostname. Remember to add the source hostname
7 # source hostname.
9 username@a.sample.hostname localuser
10 username@a.sample.hostname specificuser@a.possibly.different.hostname
11 @another.sample.hostname specificuser@a.possibly.different.hostname
12 @yet.another.sample.hostname %1@a.possibly.different.hostname
/dragonfly/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c38 static char hostname[MAX_MACHINE_NAME]; variable
75 if (checkhost(askname, hostname, sizeof hostname) ) { in bootparamproc_whoami_1_svc()
76 res.client_name = hostname; in bootparamproc_whoami_1_svc()
135 hostname[where - buffer] = '\0'; in bootparamproc_getfile_1_svc()
138 he = gethostbyname(hostname); in bootparamproc_getfile_1_svc()
141 res.server_name = hostname; in bootparamproc_getfile_1_svc()
204 if ( ! strcmp(hostname, askname) ) { in getthefile()
207 he = gethostbyname(hostname); in getthefile()
211 if (*hostname == '+' ) { /* NIS */ in getthefile()
310 he = gethostbyname(hostname); in checkhost()
[all …]
/dragonfly/contrib/cvs-1.12/lib/
H A Dxgethostname.c52 char *hostname = NULL; in xgethostname() local
62 hostname = x2realloc (hostname, &size); in xgethostname()
64 hostname[size_1 - 1] = '\0'; in xgethostname()
67 if (gethostname (hostname, size_1) == 0) in xgethostname()
69 if (! hostname[size_1 - 1]) in xgethostname()
77 free (hostname); in xgethostname()
83 return hostname; in xgethostname()
/dragonfly/usr.sbin/rpc.statd/
H A Dfile.c75 find_host(char *hostname, int create) in find_host() argument
84 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN)) in find_host()
122 strncpy(spare_slot->hostname, hostname, SM_MAXSTRLEN); in find_host()
220 notify_one_host(char *hostname) in notify_one_host() argument
233 if (debug) syslog (LOG_DEBUG, "Sending SM_NOTIFY to host %s from %s", hostname, our_hostname); in notify_one_host()
235 cli = clnt_create(hostname, SM_PROG, SM_VERS, "udp"); in notify_one_host()
238 syslog(LOG_ERR, "Failed to contact host %s%s", hostname, in notify_one_host()
247 syslog(LOG_ERR, "Failed to contact rpc.statd at host %s", hostname); in notify_one_host()
317 if (notify_one_host(hp->hostname)) in notify_hosts()
/dragonfly/crypto/openssh/
H A Dauth-rhosts.c57 check_rhosts_file(const char *filename, const char *hostname, in check_rhosts_file() argument
153 if (!innetgr(host + 1, hostname, NULL, NULL) && in check_rhosts_file()
156 } else if (strcasecmp(host, hostname) && in check_rhosts_file()
191 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2() argument
201 client_user, hostname, ipaddr); in auth_rhosts2()
242 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2()
245 "/etc/hosts.equiv.", hostname, ipaddr); in auth_rhosts2()
248 if (check_rhosts_file(_PATH_SSH_HOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2()
251 "%.100s.", hostname, ipaddr, _PATH_SSH_HOSTS_EQUIV); in auth_rhosts2()
318 if (check_rhosts_file(path, hostname, ipaddr, in auth_rhosts2()
[all …]
H A Ddns.c166 is_numeric_hostname(const char *hostname) in is_numeric_hostname() argument
174 if (hostname == NULL) { in is_numeric_hostname()
183 if (getaddrinfo(hostname, NULL, &hints, &ai) == 0) { in is_numeric_hostname()
196 verify_host_key_dns(const char *hostname, struct sockaddr *address, in verify_host_key_dns() argument
218 if (is_numeric_hostname(hostname)) { in verify_host_key_dns()
223 result = getrrsetbyname(hostname, DNS_RDATACLASS_IN, in verify_host_key_dns()
304 export_dns_rr(const char *hostname, struct sshkey *key, FILE *f, int generic) in export_dns_rr() argument
319 hostname, DNS_RDATATYPE_SSHFP, in export_dns_rr()
323 fprintf(f, "%s IN SSHFP %d %d ", hostname, in export_dns_rr()
H A Dsshlogin.c82 strlcpy(buf, li.hostname, bufsize); in get_last_login_time()
95 char hostname[HOST_NAME_MAX+1] = ""; in store_lastlog_message() local
113 last_login_time = get_last_login_time(uid, user, hostname, in store_lastlog_message()
114 sizeof(hostname)); in store_lastlog_message()
119 if (strcmp(hostname, "") == 0) in store_lastlog_message()
124 time_string, hostname); in store_lastlog_message()
H A Dloginrec.c396 if (hostname) in login_init_entry()
397 strlcpy(li->hostname, hostname, sizeof(li->hostname)); in login_init_entry()
697 strncpy(ut->ut_host, li->hostname, in construct_utmp()
779 strncpy(utx->ut_host, li->hostname, in construct_utmpx()
1234 strlcpy(li->hostname, ut.ut_host, in wtmp_get_entry()
1396 strlcpy(li->hostname, utx.ut_host, in wtmpx_get_entry()
1547 strlcpy(last.ll_host, li->hostname, in lastlog_write_entry()
1582 strlcpy(li->hostname, ll->ll_host, in lastlog_get_entry()
1583 MIN_SIZEOF(li->hostname, ll->ll_host)); in lastlog_get_entry()
1607 strlcpy(li->hostname, last.ll_host, in lastlog_get_entry()
[all …]
/dragonfly/usr.sbin/rpc.umntall/
H A Drpc.umntall.c172 do_umntall(char *hostname) { in do_umntall() argument
179 clp = clnt_create_timed(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp", in do_umntall()
182 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT")); in do_umntall()
190 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMNTALL")); in do_umntall()
200 do_umount(char *hostname, char *dirp) { in do_umount() argument
207 clp = clnt_create_timed(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp", in do_umount()
210 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT")); in do_umount()
217 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMOUNT")); in do_umount()
227 is_mounted(char *hostname, char *dirp) { in is_mounted() argument
233 if (strlen(hostname) + strlen(dirp) >= MNAMELEN) in is_mounted()
[all …]
/dragonfly/test/stress/stress2/testcases/udp/
H A Dudp.c62 char *hostname; in test() local
76 hostname = "localhost"; in test()
78 hostname = getenv("BLASTHOST"); in test()
79 host = gethostbyname(hostname); in test()
85 sock_in.sin_addr.s_addr = inet_addr(hostname); in test()
87 err(1, "host: %s", hostname); in test()
99 printf("udp %s:9 with %d bytes\n", hostname, bufsize); in test()
/dragonfly/contrib/openpam/lib/libpam/
H A Dpam_start.c70 char hostname[HOST_NAME_MAX + 1]; in pam_start() local
79 if (gethostname(hostname, sizeof hostname) != 0) in pam_start()
80 strlcpy(hostname, "localhost", sizeof hostname); in pam_start()
81 if ((r = pam_set_item(ph, PAM_HOST, hostname)) != PAM_SUCCESS) in pam_start()
/dragonfly/lib/libc/net/
H A Dether_addr.c73 ether_line(const char *l, struct ether_addr *e, char *hostname) in ether_line() argument
78 &o[4], &o[5], hostname); in ether_line()
142 ether_ntohost(char *hostname, const struct ether_addr *e) in ether_ntohost() argument
178 strcpy(hostname, local_host); in ether_ntohost()
192 ether_hostton(const char *hostname, struct ether_addr *e) in ether_hostton() argument
213 if (yp_match(yp_domain, "ethers.byname", hostname, in ether_hostton()
214 strlen(hostname), &result, &resultlen)) { in ether_hostton()
223 if (!strcmp(hostname, local_host)) { in ether_hostton()
H A Deui64.c89 static int eui64_line(const char *l, struct eui64 *e, char *hostname,
97 eui64_line(const char *l, struct eui64 *e, char *hostname, size_t len) in eui64_line() argument
119 if (strlcpy(hostname, cur, len) <= len) in eui64_line()
217 eui64_ntohost(char *hostname, size_t len __unused, const struct eui64 *id) in eui64_ntohost() argument
254 strcpy(hostname, local_host); in eui64_ntohost()
268 eui64_hostton(const char *hostname, struct eui64 *id) in eui64_hostton() argument
289 if (yp_match(yp_domain, "eui64.byname", hostname, in eui64_hostton()
290 strlen(hostname), &result, &resultlen)) { in eui64_hostton()
300 if (strcmp(hostname, local_host) == 0) { in eui64_hostton()
/dragonfly/test/stress/webstress/
H A Dwebstress.c236 char *hostname; in add_url() local
251 hostname = malloc(ptr - base + 1); in add_url()
252 bcopy(base, hostname, ptr - base); in add_url()
253 hostname[ptr - base] = 0; in add_url()
255 if ((ptr = strrchr(hostname, ':')) != NULL) { in add_url()
256 *strrchr(hostname, ':') = 0; in add_url()
264 error = inet_aton(hostname, &node->url_sin.sin_addr); in add_url()
267 hostname, strerror(errno)); in add_url()
272 if ((hen = gethostbyname(hostname)) == NULL) { in add_url()
274 hostname, hstrerror(h_errno)); in add_url()
[all …]
/dragonfly/lib/libc/rpc/
H A Dclnt_generic.c94 clnt_create_vers(const char *hostname, rpcprog_t prog, rpcvers_t *vers_out, in clnt_create_vers() argument
98 return (clnt_create_vers_timed(hostname, prog, vers_out, vers_low, in clnt_create_vers()
109 clnt_create_vers_timed(const char *hostname, rpcprog_t prog, in clnt_create_vers_timed() argument
118 clnt = clnt_create_timed(hostname, prog, vers_high, nettype, tp); in clnt_create_vers_timed()
177 clnt_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, in clnt_create() argument
181 return (clnt_create_timed(hostname, prog, vers, nettype, NULL)); in clnt_create()
193 clnt_create_timed(const char *hostname, rpcprog_t prog, rpcvers_t vers, in clnt_create_timed() argument
229 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); in clnt_create_timed()
279 clnt_tp_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, in clnt_tp_create() argument
283 return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL)); in clnt_tp_create()
[all …]
/dragonfly/contrib/cvs-1.12/src/
H A Droot.c389 newroot->hostname = NULL; in new_cvsroot_t()
426 if (root->hostname != NULL) in free_cvsroot_t()
427 free (root->hostname); in free_cvsroot_t()
732 newroot->hostname = xstrdup (cvsroot_copy); in parse_cvsroot()
773 if (newroot->username || newroot->hostname) in parse_cvsroot()
806 if (newroot->username || newroot->hostname) in parse_cvsroot()
869 if (check_hostname && !newroot->hostname) in parse_cvsroot()
926 char *p, *hostname; in normalize_cvsroot() local
937 p = hostname = xstrdup (root->hostname); in normalize_cvsroot()
950 free (hostname); in normalize_cvsroot()
[all …]
/dragonfly/contrib/smbfs/smbutil/
H A Dlookup.c63 char *hostname; in cmd_lookup() local
92 hostname = argv[argc - 1]; in cmd_lookup()
94 error = nbns_resolvename(hostname, ctx, &sap); in cmd_lookup()
96 smb_error("unable to resolve %s", error, hostname); in cmd_lookup()
100 printf("IP address of %s: %s\n", hostname, inet_ntoa(((struct sockaddr_in*)sap)->sin_addr)); in cmd_lookup()
/dragonfly/lib/libtelnet/
H A Dkrb4encpwd.c147 char hostname[80], *cp, *realm; local
154 gethostname(hostname, sizeof(hostname));
155 realm = krb_realmofhost(hostname);
156 cp = strchr(hostname, '.');
158 if (read_service_key(KRB_SERVICE_NAME, hostname, realm, 0,
268 char hostname[80], *realm; local
290 gethostname(hostname, sizeof(hostname));
291 realm = krb_realmofhost(hostname);
/dragonfly/contrib/cvs-1.12/contrib/
H A Drcs2log.sh103 hostname= # name of local host (if empty, will deduce it later)
120 -h) hostname=${2?}; shift;;
547 case $hostname in
549 hostname=`(
550 hostname || uname -n || uuname -l || cat /etc/whoami
556 case $hostname in
561 *.*) hostname=$hostname.$domainname;;
717 printf "<%s@%s>\n\n", author, "'"$hostname"'"
/dragonfly/libexec/bootpd/
H A Dlookup.c37 lookup_hwa(char *hostname, int htype) in lookup_hwa() argument
48 if (ether_hostton(hostname, &ea)) { in lookup_hwa()
50 hostname); in lookup_hwa()
71 lookup_ipa(char *hostname, u_int32 *result) in lookup_ipa() argument
74 hp = gethostbyname(hostname); in lookup_ipa()
/dragonfly/contrib/tcsh-6/
H A Ddotlock.c49 char path[MAXPATHLEN], hostname[MAXHOSTNAMELEN + 1]; in create_exclusive() local
58 (void)gethostname(hostname, sizeof(hostname)); in create_exclusive()
59 hostname[sizeof(hostname) - 1] = '\0'; in create_exclusive()
73 (int)(ptr - fname), fname, hostname, (u_long)cookie); in create_exclusive()
/dragonfly/sbin/iscontrol/
H A Discontrol.c214 char hostname[256]; in main() local
217 if(gethostname(hostname, sizeof(hostname)) == 0) in main()
218 asprintf(&op->initiatorName, "%s:%s", op->iqn, hostname); in main()
223 if(gethostname(hostname, sizeof(hostname)) == 0) in main()
224 asprintf(&op->initiatorName, "%s", hostname); in main()
/dragonfly/libexec/talkd/
H A Dtalkd.c64 char hostname[MAXHOSTNAMELEN]; variable
83 if (gethostname(hostname, sizeof(hostname) - 1) < 0) { in main()
87 hostname[sizeof(hostname) - 1] = '\0'; in main()
/dragonfly/lib/libdmsg/
H A Dsubs.c90 dmsg_connect(const char *hostname) in dmsg_connect() argument
116 if (hostname) { in dmsg_connect()
117 hen = gethostbyname2(hostname, AF_INET); in dmsg_connect()
119 if (inet_pton(AF_INET, hostname, &lsin.sin_addr) != 1) { in dmsg_connect()
120 dm_printf(3, "Cannot resolve %s\n", hostname); in dmsg_connect()

1234567891011