blob: 5a571a20ea35c21e45c1ba2c87edc85cd58e561b [file] [log] [blame]
#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 */