Lines Matching refs:header_size
370 size_t payload_size, header_size; in tcp_packet() local
387 header_size = tcp->doff * 4; in tcp_packet()
388 payload = ((const uint8_t *) tcp) + header_size; in tcp_packet()
389 payload_size = len - header_size; in tcp_packet()
391 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet()
445 size_t header_size, uint32_t old_sum, uint32_t new_sum, in tcp_translate() argument
448 out[pos].iov_len = header_size; in tcp_translate()
450 if (header_size > MAX_TCP_HDR) { in tcp_translate()
454 header_size, MAX_TCP_HDR); in tcp_translate()
455 header_size = MAX_TCP_HDR; in tcp_translate()
458 memcpy(tcp_targ, tcp, header_size); in tcp_translate()