mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-24 00:59:19 +02:00
Add WSAStartup
This commit is contained in:
parent
d7aea72bd5
commit
d72ed66a9f
|
@ -29,6 +29,7 @@ The following fixable limitations apply:
|
||||||
- DNS server IP can not be fetched automatically
|
- DNS server IP can not be fetched automatically
|
||||||
- Exactly one TAP32 interface must be installed
|
- Exactly one TAP32 interface must be installed
|
||||||
- The TAP32 interface must be named "dns"
|
- The TAP32 interface must be named "dns"
|
||||||
|
- Server cannot read packet destination address
|
||||||
|
|
||||||
The following (probably) un-fixable limitations apply:
|
The following (probably) un-fixable limitations apply:
|
||||||
- Server must be run with /30 netmask = 1 user at a time
|
- Server must be run with /30 netmask = 1 user at a time
|
||||||
|
|
|
@ -52,6 +52,11 @@
|
||||||
#include "tun.h"
|
#include "tun.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
#ifdef WINDOWS32
|
||||||
|
WORD req_version = MAKEWORD(1, 1);
|
||||||
|
WSADATA wsa_data;
|
||||||
|
#endif
|
||||||
|
|
||||||
static void send_ping(int fd);
|
static void send_ping(int fd);
|
||||||
static void send_chunk(int fd);
|
static void send_chunk(int fd);
|
||||||
static int build_hostname(char *buf, size_t buflen,
|
static int build_hostname(char *buf, size_t buflen,
|
||||||
|
@ -906,6 +911,10 @@ main(int argc, char **argv)
|
||||||
b32 = get_base32_encoder();
|
b32 = get_base32_encoder();
|
||||||
dataenc = get_base32_encoder();
|
dataenc = get_base32_encoder();
|
||||||
|
|
||||||
|
#ifdef WINDOWS32
|
||||||
|
WSAStartup(req_version, &wsa_data);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(BSD) && !defined(__GLIBC__)
|
#if !defined(BSD) && !defined(__GLIBC__)
|
||||||
__progname = strrchr(argv[0], '/');
|
__progname = strrchr(argv[0], '/');
|
||||||
if (__progname == NULL)
|
if (__progname == NULL)
|
||||||
|
|
Loading…
Reference in New Issue