clatd_test.cpp | 80 #define PAYLOAD 'H', 'e', 'l', 'l', 'o', ' ', 0x4e, 0xb8, 0x96, 0xe7, 0x95, 0x8c, 0x00 211 void *payload; local 224 payload = ip + 1; 243 payload = frag + 1; 249 // Since there are no extension headers except Fragment, this must be the payload. 251 payload = ip6 + 1; 266 // If we understand the payload, verify the checksum. 273 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length)); 276 checksum = ip_checksum(payload, payload_length); 286 struct udphdr *udp = (struct udphdr *)payload; 529 const void *payload; local 894 uint8_t payload[] = { PAYLOAD }; local [all...] |