clatd_test.cpp | 72 #define PAYLOAD 'H', 'e', 'l', 'l', 'o', ' ', 0x4e, 0xb8, 0x96, 0xe7, 0x95, 0x8c, 0x00 202 void *payload; local 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; 522 const void *payload; local 812 uint8_t payload[] = { PAYLOAD }; local [all...] |