Lines Matching refs:tag
234 * the end tag.
241 uint8_t tag;
246 tag = dhcptag_pad_e;
247 for (scan = (const uint8_t *)buffer; tag != dhcptag_end_e && len > 0; ) {
249 tag = scan[DHCP_TAG_OFFSET];
251 switch (tag) {
274 dprintf(("dhcp_options: parse failed near tag %d", tag));
294 dhcpol_find(dhcpol_t * list, int tag, int * len_p, int * start)
298 if (tag == dhcptag_end_e || tag == dhcptag_pad_e)
307 if (option[DHCP_TAG_OFFSET] == tag) {
331 dhcpol_get(dhcpol_t * list, int tag, int * len_p)
337 if (tag == dhcptag_end_e || tag == dhcptag_pad_e)
343 if (option[DHCP_TAG_OFFSET] == tag) {
461 /* initialize the area, reserve space for the end tag */
472 dhcpoa_add(dhcpoa_t * oa_p, dhcptag_t tag, int len, const void * option)
475 dprintf(("tag %d option %d > %d\n", tag, len, DHCP_OPTION_SIZE_MAX));
480 dprintf(("attempt to add data after end tag\n"));
484 switch (tag) {
488 dprintf(("can't add end tag %d > %d\n",
492 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_TAG_OFFSET] = tag;
498 /* 1 for pad tag */
500 dprintf(("can't add pad tag %d > %d\n",
504 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_TAG_OFFSET] = tag;
509 /* 2 for tag/len */
511 dprintf(("can't add tag %d (%d > %d)\n", tag,
516 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_TAG_OFFSET] = tag;