Lines Matching defs:net_host
80 static char net_host[STRSIZE];
445 strlcpy(net_host, hostname, sizeof net_host);
449 strlcpy(net_host, hostname, sizeof net_host);
463 int l = strlen(net_host) - strlen(net_domain);
465 strlcpy(recombined, net_host, sizeof(recombined));
468 net_host[l - 1] != '.' ||
469 strcasecmp(net_domain, net_host + l) != 0)) {
470 /* net_host isn't an FQDN. */
706 if (gethostname(net_host, sizeof(net_host)) == 0 &&
707 net_host[0] != 0)
718 msg_prompt_add(MSG_net_host, net_host, net_host,
719 sizeof net_host);
774 net_host,
785 net_host,
876 if (net_host[0] != '\0')
877 sethostname(net_host, strlen(net_host));
1105 scripting_fprintf(f, "%s\n", net_host);