Lines Matching refs:hostname
113 char *p, *action_str, *hostname = NULL;
255 hostname = (char *)buf;
256 hostname[data.hostname_len - 1] = 0;
257 if (!legal_hostname(hostname))
258 hostname = NULL;
259 else if ((dot = strchr(hostname, '.')))
266 if (data.action == ACTION_OLD_HOSTNAME && hostname)
268 my_setenv("DNSMASQ_OLD_HOSTNAME", hostname, &err);
269 hostname = NULL;
282 action_str, daemon->dhcp_buff, inet_ntoa(data.addr), hostname, (char*)NULL);
298 void queue_script(int action, struct dhcp_lease *lease, char *hostname, time_t now)
317 if (hostname)
318 hostname_len = strlen(hostname) + 1;
393 memcpy(p, hostname, hostname_len);