Lines Matching refs:pl

87 vendor_scan(PKT_LIST *pl)  in vendor_scan()  argument
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()
97 if (((start - (uint8_t *)pl->pkt) + len) > pl->len) in vendor_scan()
101 field_scan(start, end, pl->vs, VS_OPTION_END); in vendor_scan()
109 dhcp_options_scan(PKT_LIST *pl, boolean_t scan_vendor) in dhcp_options_scan() argument
111 PKT *pkt = pl->pkt; in dhcp_options_scan()
112 uint_t opt_size = pl->len - BASE_PKT_SIZE; in dhcp_options_scan()
118 if (pl->len < BASE_PKT_SIZE || in dhcp_options_scan()
119 bcmp(pl->pkt->cookie, bootmagic, sizeof (pl->pkt->cookie)) != 0) { in dhcp_options_scan()
120 pl->rfc1048 = 0; in dhcp_options_scan()
124 pl->rfc1048 = 1; in dhcp_options_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()
136 vendor_scan(pl); 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()