Lines Matching defs:opts
188 uchar_t *opts, *optmax, *subomax;
194 opts = (uchar_t *)pkt + sizeof (dhcpv6_message_t);
196 while (opts + sizeof (d6o) <= optmax) {
202 (void) memcpy(&d6o, opts, sizeof (d6o));
205 subomax = opts + sizeof (d6o) + d6o.d6o_len;
216 opts = subomax;
225 opts += sizeof (dhcpv6_ia_ta_t);
228 if (opts + sizeof (d6in) > subomax) {
229 opts = subomax;
232 (void) memcpy(&d6in, opts,
238 (void) memcpy(opts, &d6in,
240 opts += sizeof (d6in);
246 while (opts + sizeof (d6o) <= subomax) {
250 (void) memcpy(&d6o, opts,
254 if (opts + sizeof (d6o) + d6o.d6o_len >
258 opts += sizeof (d6o) +
266 if (opts + sizeof (d6ia) > subomax)
268 (void) memcpy(&d6ia, opts,
274 (void) memcpy(opts, &d6ia,
276 opts += sizeof (d6o) + d6o.d6o_len;
278 opts = subomax;
286 if (plp->opts[CD_LEASE_TIME] != NULL &&
287 plp->opts[CD_LEASE_TIME]->len ==
291 plp->opts[CD_LEASE_TIME]->value,
300 relativize_time(plp->opts[CD_T1_TIME], orig_time,
302 relativize_time(plp->opts[CD_T2_TIME], orig_time,
304 relativize_time(plp->opts[CD_LEASE_TIME], orig_time,