Lines Matching defs:options
30 static int option_append(uint8_t options[], size_t size, size_t *offset,
32 assert(options);
46 options[*offset] = code;
54 options[*offset] = code;
55 options[*offset + 1] = optlen;
60 memcpy(&options[*offset + 2], optval, optlen);
85 /* still space in the options array */
86 r = option_append(message->options, size, offset, code, optlen, optval);
91 close the options array and move the offset to its end */
92 r = option_append(message->options, size, offset, SD_DHCP_OPTION_END, 0, NULL);
113 r = option_append(message->options, size, offset, SD_DHCP_OPTION_END, 0, NULL);
142 static int parse_options(const uint8_t options[], size_t buflen, uint8_t *overload,
150 code = options[offset ++];
163 len = options[offset ++];
168 option = &options[offset];
243 r = parse_options(message->options, len, &overload, &message_type, &error_message, cb, userdata);