Lines Matching refs:size
30 static int option_append(uint8_t options[], size_t size, size_t *offset,
37 size --;
43 if (size < *offset + 1)
51 if (size < *offset + optlen + 2)
71 int dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset,
84 if (*offset < size) {
86 r = option_append(message->options, size, offset, code, optlen, optval);
92 r = option_append(message->options, size, offset, SD_DHCP_OPTION_END, 0, NULL);
96 *offset = size;
102 file_offset = *offset - size;
108 *offset = size + file_offset;
113 r = option_append(message->options, size, offset, SD_DHCP_OPTION_END, 0, NULL);
117 *offset = size + sizeof(message->file);
124 sname_offset = *offset - size - (file ? sizeof(message->file) : 0);
130 *offset = size + (file ? sizeof(message->file) : 0) + sname_offset;