Lines Matching refs:opt
147 const struct dhcp_opt *opt; in valid_length() local
153 for (opt = dhcp_opts; opt->option; opt++) { in valid_length()
154 if (opt->option != option) in valid_length()
158 *type = opt->type; in valid_length()
160 if (opt->type == 0 || opt->type & STRING || opt->type & RFC3442) in valid_length()
164 if (opt->type & UINT32 || opt->type & IPV4) in valid_length()
166 if (opt->type & UINT16) in valid_length()
168 if (opt->type & UINT8) in valid_length()
170 if (opt->type & IPV4 || opt->type & ARRAY) in valid_length()
186 #define get_option_raw(dhcp, opt) get_option(dhcp, opt, NULL, NULL) argument
188 get_option(const struct dhcp_message *dhcp, uint8_t opt, int *len, int *type) in get_option() argument
201 if (o == opt) { in get_option()