File: helper.h

package info (click to toggle)
libslirp 4.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,136 kB
  • sloc: ansic: 14,089; sh: 98; python: 34; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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)
#define PSEUDO_IPV6_SIZE (16*2 + 4)

uint16_t compute_checksum(uint8_t *Data, size_t Size);

extern struct in6_addr ip6_host;
extern struct in6_addr ip6_dns;

#endif /* _HELPER_H */