Lines Matching refs:oa_offset
486 if ((oa_p->oa_offset + 1) > oa_p->oa_size) {
489 oa_p->oa_offset + oa_p->oa_reserve, oa_p->oa_size));
492 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_TAG_OFFSET] = tag;
493 oa_p->oa_offset++;
499 if ((oa_p->oa_offset + oa_p->oa_reserve + 1) > oa_p->oa_size) {
501 oa_p->oa_offset + oa_p->oa_reserve + 1, oa_p->oa_size));
504 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_TAG_OFFSET] = tag;
505 oa_p->oa_offset++;
510 if ((oa_p->oa_offset + len + 2 + oa_p->oa_reserve) > oa_p->oa_size) {
512 oa_p->oa_offset + len + 2 + oa_p->oa_reserve,
516 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_TAG_OFFSET] = tag;
517 ((uint8_t *)oa_p->oa_buffer)[oa_p->oa_offset + DHCP_LEN_OFFSET] = (uint8_t)len;
519 memcpy(oa_p->oa_buffer + (DHCP_OPTION_OFFSET + oa_p->oa_offset),
522 oa_p->oa_offset += len + DHCP_OPTION_OFFSET;
545 return (oa_p->oa_offset);
553 freespace = oa_p->oa_size - oa_p->oa_offset - oa_p->oa_reserve;