Lines Matching refs:header_size
369 size_t payload_size, header_size; in tcp_packet() local
386 header_size = tcp->doff * 4; in tcp_packet()
387 payload = ((const uint8_t *)tcp) + header_size; in tcp_packet()
388 payload_size = len - header_size; in tcp_packet()
390 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet()
444 size_t header_size, uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, in tcp_translate() argument
447 out[pos].iov_len = header_size; in tcp_translate()
449 if (header_size > MAX_TCP_HDR) { in tcp_translate()
452 logmsg(ANDROID_LOG_ERROR, "tcp_translate: header too long %d > %d, truncating", header_size, in tcp_translate()
454 header_size = MAX_TCP_HDR; in tcp_translate()
457 memcpy(tcp_targ, tcp, header_size); in tcp_translate()