Lines Matching refs:option
73 /* find option 'code' in opt_list */
85 /* add an option to the opt_list */
87 const struct dhcp_option *option, char *buffer, int length)
91 existing = find_option(*opt_list, option->code);
93 DEBUG("Attaching option %s to list", option->name);
96 if ((option->flags & TYPE_MASK) == OPTION_STR1035)
101 /* make a new option */
104 new->data[OPT_CODE] = option->code;
109 while (*curr && (*curr)->data[OPT_CODE] < option->code)
115 if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL)
121 /* add it to an existing option */
122 DEBUG("Attaching option %s to existing member of list", option->name);
123 if (option->flags & OPTION_LIST) {
125 if ((option->flags & TYPE_MASK) == OPTION_STR1035)
133 if ((option->flags & TYPE_MASK) == OPTION_STRING) {
143 } /* else, ignore the data, we could put this in a second option in the future */
145 if ((option->flags & TYPE_MASK) == OPTION_STR1035 && buffer != NULL)
152 /* read a dhcp option and add it to opt_list */
157 const struct dhcp_option *option;
169 option = dhcp_options;
171 if (!option->code)
173 if (!strcasecmp(option->name, opt))
175 option++;
181 length = option_lengths[option->flags & TYPE_MASK];
184 switch (option->flags & TYPE_MASK) {
245 attach_option(opt_list, option, opt, length);
246 } while (retval && option->flags & OPTION_LIST);
291 {"option", read_opt, &(server_config.options), ""},