Lines Matching refs:pl

89 vendor_scan(PKT_LIST *pl)  in vendor_scan()  argument
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()
99 if (((start - (uint8_t *)pl->pkt) + len) > pl->len) in vendor_scan()
103 field_scan(start, end, pl->vs, VS_OPTION_END); in vendor_scan()
111 dhcp_options_scan(PKT_LIST *pl, boolean_t scan_vendor) in dhcp_options_scan() argument
113 PKT *pkt = pl->pkt; in dhcp_options_scan()
114 uint_t opt_size = pl->len - BASE_PKT_SIZE; in dhcp_options_scan()
120 if (pl->len < BASE_PKT_SIZE || in dhcp_options_scan()
121 bcmp(pl->pkt->cookie, bootmagic, sizeof (pl->pkt->cookie)) != 0) { in dhcp_options_scan()
122 pl->rfc1048 = 0; in dhcp_options_scan()
126 pl->rfc1048 = 1; in dhcp_options_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()
138 vendor_scan(pl); 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()