Lines Matching refs:daemon
81 if (!(daemon->options & OPT_DEBUG) && uid != 0) in create_helper()
88 if (daemon->options & OPT_NO_FORK) in create_helper()
114 unsigned char *buf = (unsigned char *)daemon->namebuff; in create_helper()
131 p = daemon->dhcp_buff; in create_helper()
144 for (p = daemon->packet, i = 0; i < data.clid_len; i++) in create_helper()
153 sprintf(daemon->dhcp_buff2, "%u ", data.length); in create_helper()
155 sprintf(daemon->dhcp_buff2, "%lu ", (unsigned long)data.expires); in create_helper()
196 my_setenv("DNSMASQ_CLIENT_ID", daemon->packet, &err); in create_helper()
202 my_setenv("DNSMASQ_LEASE_LENGTH", daemon->dhcp_buff2, &err); in create_helper()
204 my_setenv("DNSMASQ_LEASE_EXPIRES", daemon->dhcp_buff2, &err); in create_helper()
229 sprintf(daemon->dhcp_buff2, "DNSMASQ_USER_CLASS%i", i++); in create_helper()
230 my_setenv(daemon->dhcp_buff2, (char *)buf, &err); in create_helper()
249 sprintf(daemon->dhcp_buff2, "%u ", data.remaining_time); in create_helper()
250 my_setenv("DNSMASQ_TIME_REMAINING", daemon->dhcp_buff2, &err); in create_helper()
277 p = strrchr(daemon->lease_change_command, '/'); in create_helper()
280 execl(daemon->lease_change_command, in create_helper()
281 p ? p+1 : daemon->lease_change_command, in create_helper()
282 action_str, daemon->dhcp_buff, inet_ntoa(data.addr), hostname, (char*)NULL); in create_helper()
306 if (daemon->helperfd == -1) in queue_script()
355 if (ioctl(daemon->dhcpfd, SIOCGIFNAME, &ifr) != -1) in queue_script()
412 if ((rc = write(daemon->helperfd, buf, bytes_in_buf)) != -1) in helper_write()