Lines Matching refs:header_len
106 int header_len = ValidatePacketHeader(data->buf, data->len);
107 if (header_len == -1) {
110 unsigned char* buffer = data->buf + header_len;
112 if (!DHCPMessage::InitFromBuffer(buffer, data->len - header_len, &msg)) {
231 const size_t header_len = sizeof(struct iphdr) + sizeof(struct udphdr);
234 char buffer[header_len + payload_len];
235 memset(buffer, 0, header_len + payload_len);
239 if (!payload.CopyData(payload_len, buffer + header_len)) {
261 header_len + payload_len));
278 ip->tot_len = htons(static_cast<uint16_t>(header_len+ payload.GetLength()));
284 *output = ByteString(buffer, header_len + payload_len);