• Home
  • Raw
  • Download

Lines Matching refs:daemon

130   struct dhcp_packet *mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base;  in dhcp_reply()
185 if (expand_buf(&daemon->dhcp_packet, size)) in dhcp_reply()
187 mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; in dhcp_reply()
223 for (vendor = daemon->dhcp_vendors; vendor; vendor = vendor->next) in dhcp_reply()
273 for (mac = daemon->dhcp_macs; mac; mac = mac->next) in dhcp_reply()
320 for (context_tmp = daemon->dhcp; context_tmp; context_tmp = context_tmp->next) in dhcp_reply()
345 if (daemon->options & OPT_LOG_OPTS) in dhcp_reply()
350 strcpy(daemon->namebuff, inet_ntoa(context_tmp->start)); in dhcp_reply()
353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)); in dhcp_reply()
356 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->end)); in dhcp_reply()
362 config = find_config(daemon->dhcp_conf, context, clid, clid_len, in dhcp_reply()
403 memcpy(daemon->dhcp_buff2, mess->file, sizeof(mess->file)); in dhcp_reply()
404 daemon->dhcp_buff2[sizeof(mess->file) + 1] = 0; /* ensure zero term. */ in dhcp_reply()
405 id.net = (char *)daemon->dhcp_buff2; in dhcp_reply()
416 for (id_list = daemon->dhcp_ignore; id_list; id_list = id_list->next) in dhcp_reply()
463 for (id_list = daemon->bootp_dynamic; id_list; id_list = id_list->next) in dhcp_reply()
503 char *pq = daemon->dhcp_buff; in dhcp_reply()
534 if (pq != daemon->dhcp_buff) in dhcp_reply()
539 if (legal_hostname(daemon->dhcp_buff)) in dhcp_reply()
540 offer_hostname = client_hostname = daemon->dhcp_buff; in dhcp_reply()
545 memcpy(daemon->dhcp_buff, option_ptr(opt, 0), len); in dhcp_reply()
549 if (len > 0 && daemon->dhcp_buff[len-1] == 0) in dhcp_reply()
552 daemon->dhcp_buff[len] = 0; in dhcp_reply()
553 if (legal_hostname(daemon->dhcp_buff)) in dhcp_reply()
554 client_hostname = daemon->dhcp_buff; in dhcp_reply()
557 if (client_hostname && daemon->options & OPT_LOG_OPTS) in dhcp_reply()
581 struct dhcp_config *new = find_config(daemon->dhcp_conf, context, NULL, 0, in dhcp_reply()
605 for (o = daemon->dhcp_match; o; o = o->next) in dhcp_reply()
666 for (vendor = daemon->dhcp_vendors; vendor; vendor = vendor->next) in dhcp_reply()
691 match_vendor_opts(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->dhcp_opts); in dhcp_reply()
693 if (daemon->options & OPT_LOG_OPTS) in dhcp_reply()
695 if (sanitise(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->namebuff)) in dhcp_reply()
696 my_syslog(MS_DHCP | LOG_INFO, _("%u Vendor class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply()
697 if (sanitise(option_find(mess, sz, OPTION_USER_CLASS, 1), daemon->namebuff)) in dhcp_reply()
698 my_syslog(MS_DHCP | LOG_INFO, _("%u User class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply()
702 for (id_list = daemon->dhcp_ignore; id_list; id_list = id_list->next) in dhcp_reply()
711 if (daemon->enable_pxe && in dhcp_reply()
743 for (service = daemon->pxe_services; service; service = service->next) in dhcp_reply()
770 opt71.next = daemon->dhcp_opts; in dhcp_reply()
826 req_options = (unsigned char *)daemon->dhcp_buff2; in dhcp_reply()
839 sanitise(option_find(mess, sz, OPTION_MESSAGE, 1), daemon->dhcp_buff); in dhcp_reply()
844 …log_packet("DHCPDECLINE", option_ptr(opt, 0), emac, emac_len, iface_name, daemon->dhcp_buff, mess-… in dhcp_reply()
852 prettyprint_time(daemon->dhcp_buff, DECLINE_BACKOFF); in dhcp_reply()
854 inet_ntoa(config->addr), daemon->dhcp_buff); in dhcp_reply()
907 addrs, print_mac(daemon->namebuff, mac, len)); in dhcp_reply()
929 !config_find_by_address(daemon->dhcp_conf, lease->addr)) in dhcp_reply()
932 !config_find_by_address(daemon->dhcp_conf, addr)) in dhcp_reply()
1001 if (!(daemon->options & OPT_AUTHORITATIVE)) in dhcp_reply()
1017 if (!lease && !(daemon->options & OPT_AUTHORITATIVE)) in dhcp_reply()
1037 (!lease && !(daemon->options & OPT_AUTHORITATIVE))) in dhcp_reply()
1085 …else if ((addr_config = config_find_by_address(daemon->dhcp_conf, mess->yiaddr)) && addr_config !=… in dhcp_reply()
1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), in dhcp_reply()
1204 for (id_list = daemon->dhcp_ignore_names; id_list; id_list = id_list->next) in dhcp_reply()
1395 print_mac(daemon->namebuff, ext_mac, mac_len); in log_packet()
1397 if(daemon->options & OPT_LOG_OPTS) in log_packet()
1404 daemon->namebuff, in log_packet()
1412 daemon->namebuff, in log_packet()
1425 for (daemon->namebuff[0]= 0, i = 0; i <= trunc - INADDRSZ; i += INADDRSZ) in log_options()
1428 strncat(daemon->namebuff, ", ", 256 - strlen(daemon->namebuff)); in log_options()
1429 … strncat(daemon->namebuff, inet_ntoa(option_addr_arr(start, i)), 256 - strlen(daemon->namebuff)); in log_options()
1431 else if (!is_name || !sanitise(start, daemon->namebuff)) in log_options()
1435 print_mac(daemon->namebuff, option_ptr(start, 0), trunc); in log_options()
1442 trunc == 0 ? "" : daemon->namebuff, in log_options()
1566 if (netid && (daemon->options & OPT_LOG_OPTS)) in dhcp_packet_size()
1568 char *s = daemon->namebuff; in dhcp_packet_size()
1592 if (daemon->options & OPT_LOG_OPTS) in dhcp_packet_size()
1595 else if ((daemon->options & OPT_LOG_OPTS) && strlen((char *)mess->file) != 0) in dhcp_packet_size()
1601 if (daemon->options & OPT_LOG_OPTS) in dhcp_packet_size()
1604 else if ((daemon->options & OPT_LOG_OPTS) && strlen((char *)mess->sname) != 0) in dhcp_packet_size()
1610 if (daemon->options & OPT_LOG_OPTS) in dhcp_packet_size()
1618 for (id_list = daemon->force_broadcast; id_list; id_list = id_list->next) in dhcp_packet_size()
1853 for (opt = daemon->dhcp_opts; opt; opt = opt->next) in prune_vendor_opts()
1885 ret = daemon->dhcp_opts; in pxe_opts()
1898 p = (unsigned char *)daemon->dhcp_buff; in pxe_opts()
1899 q = (unsigned char *)daemon->dhcp_buff2; in pxe_opts()
1901 for (i = 0, service = daemon->pxe_services; service; service = service->next) in pxe_opts()
1907 if (p - (unsigned char *)daemon->dhcp_buff + len + 3 < 253) in pxe_opts()
1920 return daemon->dhcp_opts; in pxe_opts()
1927 if (q - (unsigned char *)daemon->dhcp_buff2 + 3 + INADDRSZ >= 253) in pxe_opts()
1953 ret->len = p - (unsigned char *)daemon->dhcp_buff; in pxe_opts()
1954 ret->val = (unsigned char *)daemon->dhcp_buff; in pxe_opts()
1957 if (q - (unsigned char *)daemon->dhcp_buff2 != 0) in pxe_opts()
1960 ret->len = q - (unsigned char *)daemon->dhcp_buff2; in pxe_opts()
1961 ret->val = (unsigned char *)daemon->dhcp_buff2; in pxe_opts()
1966 for (o = daemon->dhcp_opts; o; o = o->next) in pxe_opts()
2002 for (boot = daemon->boot_config; boot; boot = boot->next) in find_boot()
2007 for (boot = daemon->boot_config; boot; boot = boot->next) in find_boot()
2026 struct dhcp_opt *opt, *config_opts = daemon->dhcp_opts; in do_options()
2037 if ((daemon->options & OPT_LOG_OPTS) && req_options) in do_options()
2039 char *q = daemon->namebuff; in do_options()
2043 q += snprintf(q, MAXDNAME - (q - daemon->namebuff), in do_options()
2049 if (req_options[i+1] == OPTION_END || (q - daemon->namebuff) > 40) in do_options()
2051 q = daemon->namebuff; in do_options()
2052 … my_syslog(MS_DHCP | LOG_INFO, _("%u requested options: %s"), ntohl(mess->xid), daemon->namebuff); in do_options()
2070 if (!(daemon->options & OPT_NO_OVERRIDE) && in do_options()
2080 if (!(daemon->options & OPT_NO_OVERRIDE) && in do_options()
2119 if (!req_options || (daemon->options & OPT_NO_OVERRIDE)) in do_options()
2318 if (!req_options || (daemon->options & OPT_NO_OVERRIDE)) in do_options()