Lines Matching refs:pkt
368 * First the pkt->dp_options is parsed. If that contains
369 * the overload option, it parses pkt->dp_file if specified,
370 * then parses pkt->dp_sname if specified.
373 dhcpol_parse_packet(dhcpol_t * options, const struct dhcp * pkt, int len)
379 if (len < (sizeof(*pkt) + RFC_MAGIC_SIZE)) {
381 len, (int)sizeof(*pkt) + RFC_MAGIC_SIZE));
384 if (bcmp(pkt->dp_options, rfc_magic, RFC_MAGIC_SIZE)) {
388 if (dhcpol_parse_buffer(options, pkt->dp_options + RFC_MAGIC_SIZE,
389 len - sizeof(*pkt) - RFC_MAGIC_SIZE) == FALSE)
403 if (dhcpol_parse_buffer(&extra, pkt->dp_file,
404 sizeof(pkt->dp_file))) {
411 if (dhcpol_parse_buffer(&extra, pkt->dp_sname,
412 sizeof(pkt->dp_sname))) {
633 struct dhcp * pkt = (struct dhcp *)buf;
639 bcopy(tests[i].data, pkt->dp_options, tests[i].len);
640 if (dhcpol_parse_packet(&options, pkt,
641 sizeof(*pkt) + tests[i].len)