Home | History | Annotate | Download | only in android-clat

Lines Matching defs:payload_length

203   size_t payload_length = 0;
217 payload_length = len - sizeof(*ip);
218 pseudo_checksum = ipv4_pseudo_header_checksum(ip, payload_length);
237 payload_length = len - sizeof(*ip6) - sizeof(*frag);
243 payload_length = len - sizeof(*ip6);
247 if (payload_length) {
248 pseudo_checksum = ipv6_pseudo_header_checksum(ip6, payload_length, protocol);
258 if (payload_length) {
264 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length));
267 checksum = ip_checksum(payload, payload_length);
280 if (payload_length) {
281 EXPECT_EQ(payload_length, ntohs(udp->len)) << msg << ": Incorrect UDP length\n";
347 int payload_length = len - payload_offset;
348 total_length += payload_length;
350 memcpy(reassembled + pos, packet + payload_offset, payload_length);
351 pos += payload_length;