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

Lines Matching refs:PAYLOAD

72 #define PAYLOAD 'H', 'e', 'l', 'l', 'o', ' ', 0x4e, 0xb8, 0x96, 0xe7, 0x95, 0x8c, 0x00
202 void *payload;
215 payload = ip + 1;
234 payload = frag + 1;
240 // Since there are no extension headers except Fragment, this must be the payload.
242 payload = ip6 + 1;
257 // If we understand the payload, verify the checksum.
264 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length));
267 checksum = ip_checksum(payload, payload_length);
277 struct udphdr *udp = (struct udphdr *) payload;
346 // Copy the payload.
522 const void *payload;
532 payload = ip + 1;
537 payload = ip6 + 1;
545 return ((struct udphdr *) payload)->check;
548 return ((struct tcphdr *) payload)->check;
755 uint8_t v4_udp_packet[] = { IPV4_UDP_HEADER UDP_HEADER PAYLOAD };
761 uint8_t v6_udp_packet[] = { IPV6_UDP_HEADER UDP_HEADER PAYLOAD };
767 uint8_t ipv4_ping[] = { IPV4_ICMP_HEADER IPV4_PING PAYLOAD };
770 uint8_t ipv6_ping[] = { IPV6_ICMPV6_HEADER IPV6_PING PAYLOAD };
812 uint8_t payload[] = { PAYLOAD };
815 EXPECT_EQ(kPayloadPartialChecksum, ip_checksum_add(0, payload, sizeof(payload)))
816 Payload partial checksum\n";
871 uint8_t udp_ipv4[] = { IPV4_UDP_HEADER UDP_HEADER PAYLOAD };
872 uint8_t udp_ipv6[] = { IPV6_UDP_HEADER UDP_HEADER PAYLOAD };
880 uint8_t ipv4_ping[] = { IPV4_ICMP_HEADER IPV4_PING PAYLOAD };
881 uint8_t ipv6_ping[] = { IPV6_ICMPV6_HEADER IPV6_PING PAYLOAD };
923 uint8_t udp_ipv4[] = { IPV4_UDP_HEADER UDP_HEADER PAYLOAD };
929 uint8_t udp_ipv6[] = { IPV6_UDP_HEADER UDP_HEADER PAYLOAD };