#ifndef _HELPER_H | |
#define _HELPER_H | |
#ifdef _WIN32 | |
/* as defined in sdkddkver.h */ | |
#ifndef _WIN32_WINNT | |
#define _WIN32_WINNT 0x0600 /* Vista */ | |
#endif | |
#include <ws2tcpip.h> | |
#endif | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <netinet/in.h> | |
#define PSEUDO_IP_SIZE (4*2 + 4) | |
uint16_t compute_checksum(uint8_t *Data, size_t Size); | |
#endif /* _HELPER_H */ |