Lines Matching refs:option
10 * (at your option) any later version.
40 /* get a rough idea of how long an option will be (rounding up...) */
54 static int upper_length(int length, struct dhcp_option *option)
56 return max_option_length[option->flags & TYPE_MASK] *
57 (length / option_lengths[option->flags & TYPE_MASK]);
65 /* Fill dest with the text of option 'option'. */
66 static void fill_options(char *dest, unsigned char *option, struct dhcp_option *type_p)
73 int len = option[OPT_LEN - 2];
90 fwrite(option, 1, len, fp);
107 fwrite(option, 1, len, fp);
121 dest += sprintip(dest, "", option);
123 option += 4;
126 dest += sprintip(dest, "", option);
129 dest += sprintf(dest, *option ? "yes " : "no ");
132 dest += sprintf(dest, "%u ", *option);
135 memcpy(&val_u16, option, 2);
139 memcpy(&val_s16, option, 2);
143 memcpy(&val_u32, option, 4);
147 memcpy(&val_s32, option, 4);
151 memcpy(dest, option, len);
155 option += optlen;