• Home
  • Raw
  • Download

Lines Matching refs:req_options

104                        unsigned char* real_end, unsigned char* req_options, char* hostname,
130 unsigned char* req_options = NULL; in dhcp_reply() local
735 req_options = (unsigned char*) daemon->dhcp_buff2; in dhcp_reply()
736 memcpy(req_options, option_ptr(opt, 0), option_len(opt)); in dhcp_reply()
737 req_options[option_len(opt)] = OPTION_END; in dhcp_reply()
865 do_options(context, mess, end, req_options, offer_hostname, get_domain(mess->yiaddr), in dhcp_reply()
1094 do_options(context, mess, end, req_options, hostname, get_domain(mess->yiaddr), in dhcp_reply()
1145 do_options(context, mess, end, req_options, hostname, get_domain(mess->ciaddr), domain, in dhcp_reply()
1748 unsigned char* req_options, char* hostname, char* domain, in do_options() argument
1763 if ((daemon->options & OPT_LOG_OPTS) && req_options) { in do_options()
1765 for (i = 0; req_options[i] != OPTION_END; i++) { in do_options()
1766 char* s = option_string(req_options[i], NULL, NULL); in do_options()
1767 q += snprintf(q, MAXDNAME - (q - daemon->namebuff), "%d%s%s%s", req_options[i], in do_options()
1768 s ? ":" : "", s ? s : "", req_options[i + 1] == OPTION_END ? "" : ", "); in do_options()
1769 if (req_options[i + 1] == OPTION_END || (q - daemon->namebuff) > 40) { in do_options()
1787 if (!(daemon->options & OPT_NO_OVERRIDE) && req_options && in do_options()
1788 in_list(req_options, OPTION_SNAME)) in do_options()
1795 if (!(daemon->options & OPT_NO_OVERRIDE) && req_options && in do_options()
1796 in_list(req_options, OPTION_FILENAME)) in do_options()
1809 if ((!req_options || !in_list(req_options, OPTION_FILENAME)) && mess->file[0] == 0 && in do_options()
1816 if ((!req_options || !in_list(req_options, OPTION_SNAME)) && in do_options()
1830 if (!req_options || (daemon->options & OPT_NO_OVERRIDE)) { in do_options()
1857 if (context->router.s_addr && in_list(req_options, OPTION_ROUTER) && in do_options()
1861 if (in_list(req_options, OPTION_DNSSERVER) && in do_options()
1866 if (domain && in_list(req_options, OPTION_DOMAINNAME) && in do_options()
1872 if (in_list(req_options, OPTION_HOSTNAME) && in do_options()
1913 if (!(opt->flags & DHOPT_FORCE) && !in_list(req_options, optno)) continue; in do_options()
1968 (o->flags & DHOPT_FORCE || in_list(req_options, o->u.encap))) { in do_options()
1981 if (in_list(req_options, OPTION_VENDOR_CLASS_OPT)) force_encap = 1; in do_options()
1993 if (!req_options || (daemon->options & OPT_NO_OVERRIDE)) { in do_options()