Searched defs:header_len (Results 1 - 2 of 2) sorted by relevance

/system/connectivity/dhcp_client/
H A Ddhcpv4.cc106 int header_len = ValidatePacketHeader(data->buf, data->len); local
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); local
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
[all...]
/system/extras/ANRdaemon/
H A DANRdaemon.cpp260 ssize_t header_len = strlen(header); local
273 if (write(output_fd, header, strlen(header)) != header_len) {

Completed in 296 milliseconds