Home
last modified time | relevance | path

Searched refs:h_name (Results 1 – 25 of 61) sorted by relevance

123

/openbsd/src/usr.sbin/config/
Dhash.c57 const char *h_name; /* the string */ member
138 hp->h_name = name; in newhashent()
181 if (hp->h_hash == h && strcmp(hp->h_name, s) == 0) in intern()
182 return (hp->h_name); in intern()
213 while (hp && hp->h_name == nam) { in ht_remove()
223 if (thp->h_name == nam) { in ht_remove()
245 if (hp->h_name == nam) { in ht_insrep()
267 if (hp->h_name == nam) in ht_lookup()
/openbsd/src/gnu/usr.bin/perl/lib/Net/
Dhostent.pm5 $h_name, @h_aliases,
13 $h_name @h_aliases
33 $h_name = $hob->[0] = $_[0];
/openbsd/src/sbin/dhcpleased/
Dprintconf.c109 if (iface->h_name != NULL) { in print_config()
110 if (iface->h_name[0] == '\0') in print_config()
114 iface->h_name); in print_config()
Dfrontend.c371 iface_conf->h_name = NULL; in frontend_dispatch_main()
415 if (iface_conf->h_name != NULL) in frontend_dispatch_main()
420 if ((iface_conf->h_name = malloc(len)) == NULL) in frontend_dispatch_main()
422 if (imsg_get_data(&imsg, iface_conf->h_name, len) == -1) in frontend_dispatch_main()
424 if (iface_conf->h_name[len - 1] != '\0') in frontend_dispatch_main()
975 if (iface_conf != NULL && iface_conf->h_name != NULL) { in build_packet()
976 if (iface_conf->h_name[0] != '\0') { in build_packet()
977 dhcp_hostname[1] = strlen(iface_conf->h_name); in build_packet()
978 memcpy(dhcp_hostname + 2, iface_conf->h_name, in build_packet()
979 strlen(iface_conf->h_name)); in build_packet()
[all …]
Dparse.y278 if (iface_conf->h_name != NULL) {
288 iface_conf->h_name = $4;
291 if (iface_conf->h_name != NULL) {
296 if ((iface_conf->h_name = strdup("")) == NULL) {
Ddhcpleased.h257 char *h_name; member
Ddhcpleased.c756 if (iface_conf->h_name != NULL) in main_imsg_send_config()
758 iface_conf->h_name, strlen(iface_conf->h_name) + 1); in main_imsg_send_config()
1282 free(iface_conf->h_name); in merge_config()
/openbsd/src/usr.sbin/rpc.bootparamd/
Dbootparamd.c164 warnx("This is host %s", he->h_name); in bootparamproc_whoami_1_svc()
166 syslog(LOG_NOTICE, "This is host %s", he->h_name); in bootparamproc_whoami_1_svc()
168 strlcpy(askname, he->h_name, sizeof askname); in bootparamproc_whoami_1_svc()
224 strlcpy(askname, he->h_name, sizeof askname); in bootparamproc_getfile_1_svc()
308 if (hp == NULL || strcasecmp(hp->h_name, client)) in lookup_bootparam()
/openbsd/src/lib/libc/asr/
Dgethostnamadr.c68 r->h_name = NULL; in _fillhostent()
74 n = strlcpy(pos, h->h_name, end - pos); in _fillhostent()
77 r->h_name = pos; in _fillhostent()
Dgethostnamadr_async.c370 h->h.h_name == NULL) { in gethostnamadr_async_run()
588 if (h->h.h_name) in hostent_set_cname()
603 h->h.h_name = h->pos; in hostent_set_cname()
686 sz = strlen(h->h.h_name) + 1; in netent_from_hostent()
687 memcpy(n->pos, h->h.h_name, sz); in netent_from_hostent()
/openbsd/src/sbin/mountd/
Dmountd.c840 add_mlist(hp->h_name, dirpath); in mntsrv()
873 del_mlist(hp->h_name, dirpath); in mntsrv()
885 del_mlist(hp->h_name, NULL); in mntsrv()
1019 strp = grp->gr_ptr.gt_hostent->h_name; in put_exlist()
1312 hpe->h_name = strdup("Default"); in get_exportlist()
1313 if (hpe->h_name == NULL) in get_exportlist()
1370 ? grp->gr_ptr.gt_hostent->h_name in get_exportlist()
1811 hp->h_name = cp; in get_host()
1829 !strcmp(checkgrp->gr_ptr.gt_hostent->h_name, hp->h_name)) { in get_host()
1840 i = strlen(hp->h_name)+1; in get_host()
[all …]
/openbsd/src/usr.sbin/dhcpd/
Dsync.c59 char *h_name; member
93 shost->h_name = strdup(name); in sync_addhost()
94 if (shost->h_name == NULL) { in sync_addhost()
109 shost->h_name, inet_ntoa(shost->sh_addr.sin_addr), port); in sync_addhost()
378 shost->h_name, inet_ntoa(shost->sh_addr.sin_addr)); in sync_send()
/openbsd/src/sbin/umount/
Dumount.c346 if (strcasecmp(nfshost, hp->h_name) == 0) in namematch()
349 if ((cp = strchr(hp->h_name, '.')) != NULL) { in namematch()
351 if (strcasecmp(nfshost, hp->h_name) == 0) in namematch()
/openbsd/src/libexec/talkd/
Dprocess.c167 rp->answer = announce(mp, hp->h_name); in do_announce()
177 rp->answer = announce(mp, hp->h_name); in do_announce()
/openbsd/src/libexec/spamd/
Dsync.c60 char *h_name; member
95 if ((shost->h_name = strdup(name)) == NULL) { in sync_addhost()
110 "(address %s, port %d)\n", shost->h_name, in sync_addhost()
410 shost->h_name, inet_ntoa(shost->sh_addr.sin_addr)); in sync_send()
/openbsd/src/usr.sbin/amd/amd/
Dwire.c113 s = hp->h_name; in getwire()
Dutil.c219 dlog("Hostname %s normalized to %s", *chp, hp->h_name); in host_normalize()
221 *chp = strealloc(*chp, hp->h_name); in host_normalize()
Dsrvr_nfs.c619 if (hp && !normalize_hosts) host = hp->h_name; in find_nfs_srvr()
659 fs->fs_host = strdup(hp ? hp->h_name : "unknown_hostname"); in find_nfs_srvr()
/openbsd/src/sbin/route/
Dshow.c552 if ((cp = strchr(hp->h_name, '.')) && in routename4()
555 cp = hp->h_name; in routename4()
593 cp = hp->h_name; in netname4()
/openbsd/src/usr.sbin/ypserv/ypserv/
Dypserv_db.c389 inet_ntoa(*addr_name), host->h_name); in lookup_host()
404 strncpy((char *)hostname, host->h_name, sizeof(hostname) - 1); in lookup_host()
423 len = snprintf(val, sizeof(val), "%s %s", keystr, host->h_name); in lookup_host()
/openbsd/src/usr.bin/talk/
Dinvite.c130 rphost->h_name); in invite_remote()
/openbsd/src/gnu/usr.bin/cvs/windows-NT/
Drcmd.c73 *ahost = e->h_name; in resolve_address()
/openbsd/src/include/
Dnetdb.h109 char *h_name; /* official name of host */ member
/openbsd/src/usr.bin/netstat/
Dinet6.c973 if ((cp = strchr(hp->h_name, '.')) && in inet6name()
976 cp = hp->h_name; in inet6name()
/openbsd/src/usr.bin/ypwhich/
Dypwhich.c126 printf("%s\n", hent->h_name); in bind_host()

123