Lines Matching refs:options
111 /** Option handling: options are parsed in dhcp_parse_reply
181 /* always add the DHCP options trailer to end and pad */
305 dhcp_option(dhcp, DHCP_OPTION_PARAMETER_REQUEST_LIST, 4/*num options*/);
515 /* clear options we might not get from the ACK */
846 /* resize pbuf to reflect true size of options */
888 dhcp_option(dhcp, DHCP_OPTION_PARAMETER_REQUEST_LIST, 4/*num options*/);
1271 dhcp->msg_out->options[dhcp->options_out_len++] = option_type;
1272 dhcp->msg_out->options[dhcp->options_out_len++] = option_len;
1282 dhcp->msg_out->options[dhcp->options_out_len++] = value;
1289 dhcp->msg_out->options[dhcp->options_out_len++] = (u8_t)((value & 0xff00U) >> 8);
1290 dhcp->msg_out->options[dhcp->options_out_len++] = (u8_t) (value & 0x00ffU);
1297 dhcp->msg_out->options[dhcp->options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24);
1298 dhcp->msg_out->options[dhcp->options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16);
1299 dhcp->msg_out->options[dhcp->options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8);
1300 dhcp->msg_out->options[dhcp->options_out_len++] = (u8_t)((value & 0x000000ffUL));
1327 * Extract the DHCP message and the DHCP options.
1329 * Extract the DHCP message and the DHCP options, each into a contiguous
1330 * piece of memory. As a DHCP message is variable sized by its options,
1331 * and also allows overriding some fields for options, the easy approach
1332 * is to first unfold the options into a conitguous piece of memory, and
1339 u8_t *options;
1348 /* clear received options */
1360 /* parse options */
1362 /* start with options field */
1364 /* parse options to the end of the received packet */
1378 options = (u8_t*)q->payload;
1380 while((q != NULL) && (options[offset] != DHCP_OPTION_END) && (offset < offset_max)) {
1381 u8_t op = options[offset];
1388 len = options[offset + 1];
1445 LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", op));
1482 options = (u8_t*)q->payload;
1719 /* fill options field with an incrementing array (for debugging purposes) */
1721 dhcp->msg_out->options[i] = (u8_t)i; /* for debugging only, no matter if truncated */
1761 dhcp->msg_out->options[dhcp->options_out_len++] = DHCP_OPTION_END;
1766 dhcp->msg_out->options[dhcp->options_out_len++] = 0;