Lines Matching refs:payload_size
230 uint32_t checksum, const uint8_t *payload, size_t payload_size) { in icmp_to_icmp6() argument
246 clat_packet_len = ipv4_packet(out, pos + 1, payload, payload_size); in icmp_to_icmp6()
260 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp_to_icmp6()
282 const uint8_t *payload, size_t payload_size) { in icmp6_to_icmp() argument
299 clat_packet_len = ipv6_packet(out, pos + 1, payload, payload_size); in icmp6_to_icmp()
305 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp6_to_icmp()
345 size_t payload_size; in udp_packet() local
353 payload_size = len - sizeof(struct udphdr); in udp_packet()
355 return udp_translate(out, pos, udp, old_sum, new_sum, payload, payload_size); in udp_packet()
369 size_t payload_size, header_size; in tcp_packet() local
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()
404 uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, size_t payload_size) { in udp_translate() argument
411 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in udp_translate()
445 size_t payload_size) { in tcp_translate() argument
460 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in tcp_translate()