| /openbsd/src/usr.sbin/config/ |
| D | hash.c | 57 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/ |
| D | hostent.pm | 5 $h_name, @h_aliases, 13 $h_name @h_aliases 33 $h_name = $hob->[0] = $_[0];
|
| /openbsd/src/sbin/dhcpleased/ |
| D | printconf.c | 109 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()
|
| D | frontend.c | 371 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 …]
|
| D | parse.y | 278 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) {
|
| D | dhcpleased.h | 257 char *h_name; member
|
| D | dhcpleased.c | 756 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/ |
| D | bootparamd.c | 164 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/ |
| D | gethostnamadr.c | 68 r->h_name = NULL; in _fillhostent() 74 n = strlcpy(pos, h->h_name, end - pos); in _fillhostent() 77 r->h_name = pos; in _fillhostent()
|
| D | gethostnamadr_async.c | 370 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/ |
| D | mountd.c | 840 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/ |
| D | sync.c | 59 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/ |
| D | umount.c | 346 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/ |
| D | process.c | 167 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/ |
| D | sync.c | 60 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/ |
| D | wire.c | 113 s = hp->h_name; in getwire()
|
| D | util.c | 219 dlog("Hostname %s normalized to %s", *chp, hp->h_name); in host_normalize() 221 *chp = strealloc(*chp, hp->h_name); in host_normalize()
|
| D | srvr_nfs.c | 619 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/ |
| D | show.c | 552 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/ |
| D | ypserv_db.c | 389 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/ |
| D | invite.c | 130 rphost->h_name); in invite_remote()
|
| /openbsd/src/gnu/usr.bin/cvs/windows-NT/ |
| D | rcmd.c | 73 *ahost = e->h_name; in resolve_address()
|
| /openbsd/src/include/ |
| D | netdb.h | 109 char *h_name; /* official name of host */ member
|
| /openbsd/src/usr.bin/netstat/ |
| D | inet6.c | 973 if ((cp = strchr(hp->h_name, '.')) && in inet6name() 976 cp = hp->h_name; in inet6name()
|
| /openbsd/src/usr.bin/ypwhich/ |
| D | ypwhich.c | 126 printf("%s\n", hent->h_name); in bind_host()
|