Lines Matching refs:option
31 * and create new dhcp option areas
232 * list of option pointers in the given dhcpol_t.
285 * Finds the first occurence of the given option, and returns its
286 * length and the option data pointer.
290 * calls will retrieve the next occurence of the option.
305 const uint8_t * option = dhcpol_element(list, i);
307 if (option[DHCP_TAG_OFFSET] == tag) {
309 *len_p = option[DHCP_LEN_OFFSET];
312 return (option + DHCP_OPTION_OFFSET);
323 * Accumulate all occurences of the given option into a
325 * all occurrences of a particular option in a single
341 const uint8_t * option = dhcpol_element(list, i);
343 if (option[DHCP_TAG_OFFSET] == tag) {
344 int len = option[DHCP_LEN_OFFSET];
352 bcopy(option + DHCP_OPTION_OFFSET, data + data_len, len);
365 * Parse the option areas in the DHCP packet.
367 * then parses and accumulates the option areas.
369 * the overload option, it parses pkt->dp_file if specified,
426 * Types and functions to create new dhcp option areas.
433 * Initialize an option area structure so that it can be used
469 * Add an option to the option area.
472 dhcpoa_add(dhcpoa_t * oa_p, dhcptag_t tag, int len, const void * option)
475 dprintf(("tag %d option %d > %d\n", tag, len, DHCP_OPTION_SIZE_MAX));
520 option, len);
533 * Add a dhcp message option to the option area.