Lines Matching refs:opts
93 if (pl->opts[CD_VENDOR_SPEC] == NULL) in vendor_scan()
95 len = pl->opts[CD_VENDOR_SPEC]->len; in vendor_scan()
96 start = pl->opts[CD_VENDOR_SPEC]->value; in vendor_scan()
129 field_scan(pkt->options, &pkt->options[opt_size], pl->opts, in dhcp_options_scan()
137 if (scan_vendor && (pl->opts[CD_VENDOR_SPEC] != NULL)) in dhcp_options_scan()
140 if (pl->opts[CD_DHCP_TYPE] == NULL) in dhcp_options_scan()
143 if (pl->opts[CD_DHCP_TYPE]->len != 1) in dhcp_options_scan()
146 if (*pl->opts[CD_DHCP_TYPE]->value < DISCOVER || in dhcp_options_scan()
147 *pl->opts[CD_DHCP_TYPE]->value > INFORM) in dhcp_options_scan()
150 if (pl->opts[CD_OPTION_OVERLOAD]) { in dhcp_options_scan()
151 if (pl->opts[CD_OPTION_OVERLOAD]->len != 1) { in dhcp_options_scan()
152 pl->opts[CD_OPTION_OVERLOAD] = NULL; in dhcp_options_scan()
155 switch (*pl->opts[CD_OPTION_OVERLOAD]->value) { in dhcp_options_scan()
157 field_scan(pkt->file, &pkt->cookie[0], pl->opts, in dhcp_options_scan()
161 field_scan(pkt->sname, &pkt->file[0], pl->opts, in dhcp_options_scan()
165 field_scan(pkt->file, &pkt->cookie[0], pl->opts, in dhcp_options_scan()
167 field_scan(pkt->sname, &pkt->file[0], pl->opts, in dhcp_options_scan()
171 pl->opts[CD_OPTION_OVERLOAD] = NULL; in dhcp_options_scan()