Lines Matching refs:opts
91 if (pl->opts[CD_VENDOR_SPEC] == NULL) in vendor_scan()
93 len = pl->opts[CD_VENDOR_SPEC]->len; in vendor_scan()
94 start = pl->opts[CD_VENDOR_SPEC]->value; in vendor_scan()
127 field_scan(pkt->options, &pkt->options[opt_size], pl->opts, in dhcp_options_scan()
135 if (scan_vendor && (pl->opts[CD_VENDOR_SPEC] != NULL)) in dhcp_options_scan()
138 if (pl->opts[CD_DHCP_TYPE] == NULL) in dhcp_options_scan()
141 if (pl->opts[CD_DHCP_TYPE]->len != 1) in dhcp_options_scan()
144 if (*pl->opts[CD_DHCP_TYPE]->value < DISCOVER || in dhcp_options_scan()
145 *pl->opts[CD_DHCP_TYPE]->value > INFORM) in dhcp_options_scan()
148 if (pl->opts[CD_OPTION_OVERLOAD]) { in dhcp_options_scan()
149 if (pl->opts[CD_OPTION_OVERLOAD]->len != 1) { in dhcp_options_scan()
150 pl->opts[CD_OPTION_OVERLOAD] = NULL; in dhcp_options_scan()
153 switch (*pl->opts[CD_OPTION_OVERLOAD]->value) { in dhcp_options_scan()
155 field_scan(pkt->file, &pkt->cookie[0], pl->opts, in dhcp_options_scan()
159 field_scan(pkt->sname, &pkt->file[0], pl->opts, in dhcp_options_scan()
163 field_scan(pkt->file, &pkt->cookie[0], pl->opts, in dhcp_options_scan()
165 field_scan(pkt->sname, &pkt->file[0], pl->opts, in dhcp_options_scan()
169 pl->opts[CD_OPTION_OVERLOAD] = NULL; in dhcp_options_scan()