Erik Ekman
5b71224def
Fix segfault in windows tun reader thread
...
The arguments to open_dns() needs to be updated after API change.
Called with 0, INADDR_ANY used to mean port, IP address but now means
pointer to sockadddr and its length. Thanks to C for not giving any
warnings or errors..
2014-05-31 19:33:25 +02:00
Erik Ekman
00268bc160
Fix two unused variables for windows build
2014-05-31 10:19:46 +02:00
Erik Ekman
b079b0eda5
Fix build error and a warning on OpenBSD
2014-05-29 16:18:59 +02:00
Erik Ekman
eca80f769b
Merge branch 'master' of https://github.com/jedisct1/iodine
2014-04-06 13:31:34 +02:00
Erik Ekman
a1d88c4f0a
IPv6 support for client ( #107 )
...
The iodine client now supports both IPv4 and IPv6 nameservers for
sending DNS queries to an IPv4 iodined. The nameserver will
transparently handle translation between IP protocols.
Windows port needs Vista or later to support IPv6.
2014-02-05 22:36:53 +01:00
Frank Denis
1523a4f035
snprintf() is a macro on some operating systems
...
and having #ifdef statements in macro parameters has undefined behavior.
2013-05-20 10:39:05 -07:00
Erik Ekman
59dbaf2b50
Merge pull request #1 from zschoche/master
...
Bugfix for Mountain Lion
2013-01-15 00:26:02 -08:00
Jason A. Donenfeld
ade78ac8a2
More generic way of finding ifconfig.
2012-09-09 14:02:54 +02:00
Philipp Zschoche
e1e438497a
after update to OSX 10.8 I've gotten these error:
...
route: writing to routing socket: Can't assign requested address
add net 192.168.99.2: gateway 192.168.99.2: Can't assign requested address
This change fix that!
2012-07-31 22:09:53 +02:00
Erik Ekman
b30abea6b0
Reorganize imports for OpenBSD
2012-02-10 23:26:27 +01:00
Marcel Bokhorst
a569030bb7
Android support ( #105 ) patch from Marcel Bokhorst
2012-02-04 20:34:05 +01:00
Erik Ekman
0be4332193
Fix things mentioned in #91
2012-02-04 20:34:05 +01:00
Erik Ekman
b22e3da5a0
#89 , use remote ip as second ip in ifconfig on FreeBSD
2012-02-04 20:34:05 +01:00
Erik Ekman
cf78fdca85
print error if tun device is already taken
2012-02-04 20:34:02 +01:00
Erik Ekman
e84b317e0e
Small tweaks
2012-02-04 20:34:02 +01:00
Erik Ekman
8fc8ce587c
Any number of TAP32 interfaces supported, use -d to choose. #46
2012-02-04 20:34:02 +01:00
Erik Ekman
e59aaa523e
Fixed #47 , support any TAP device name
2012-02-04 20:34:02 +01:00
Erik Ekman
96ee6f9630
Use recv on windows and read for the others
2012-02-04 20:34:01 +01:00
Luigi Rizzo
8b95bded10
Use read instead of recv, #58 .
2012-02-04 20:34:01 +01:00
Erik Ekman
a3a20a2b09
#53 Support TAP32 version 0901 as well
2012-02-04 20:34:01 +01:00
Erik Ekman
54195968c7
Use winsock2.h, use ws2tcpip.h for socklen_t
2012-02-04 20:34:01 +01:00
Erik Ekman
7b30a2e504
actually accept mtu=1500
2012-02-04 20:34:01 +01:00
Erik Ekman
3e07afd13b
change all printf to fprintf on stderr for #49
2012-02-04 20:34:01 +01:00
Erik Ekman
1b7e9bed43
give error when no TAP adapters found, and clean better
2012-02-04 20:34:00 +01:00
Erik Ekman
b3e8cf0554
#43 : Basic windows support operational
2012-02-04 20:34:00 +01:00
Erik Ekman
3ad63f8791
cleanup of tun.c
2012-02-04 20:34:00 +01:00
Erik Ekman
94f412a8d8
Dont need plibc
2012-02-04 20:34:00 +01:00
Erik Ekman
937eaa8007
#43 Now works on windows, if you set your ip correctly and use a /30 netmask
2012-02-04 20:34:00 +01:00
Erik Ekman
568c4b18f4
#43 : Fixed write function, downstream tunneling works now on win32
2012-02-04 20:34:00 +01:00
Erik Ekman
540f411474
Added setting of ip, does not seem to work though
2012-02-04 20:34:00 +01:00
Erik Ekman
e4e38c9593
Opening of device done, and it is set as active
2012-02-04 20:34:00 +01:00
Erik Ekman
155f0c6f37
Merged branch with mingw port. Compiles now, tun work to do
2012-02-04 20:34:00 +01:00
Erik Ekman
9383c84479
fix warnings
2012-02-04 20:33:59 +01:00
Erik Ekman
43c438971b
Allow setting netmask in iodined, fixes #27 . The same netmask will be given to clients as well. Updated docs.
2012-02-04 20:33:59 +01:00
Erik Ekman
a5031ee9dd
Happy new year
2012-02-04 20:33:59 +01:00
Erik Ekman
49695a4cb4
Updated year
2012-02-04 20:33:57 +01:00
Jim
1188572a12
Use %d for size_t sprintf
2012-02-04 20:33:55 +01:00
Matus Harvan
4a16503ea5
buffer overflow in dns.c pointed out by Matus Harvan, also strncpy cleanups
2012-02-04 20:33:55 +01:00
Erik Ekman
d62b1562ed
Remove warning for \!LINUX
2012-02-04 20:33:34 +01:00
Erik Ekman
15a83534a8
new year
2007-03-21 00:00:27 +00:00
Erik Ekman
ad07e40988
Use -pedantic, fixed all warnings
2007-02-11 13:54:40 +00:00
Bjorn Andersson
1f740de4aa
moving files to src and tests, tests disabled
2006-11-09 19:08:28 +00:00