Commit Graph

73 Commits

Author SHA1 Message Date
frekky 6050bed3e6 Merge branch 'delay-variance-option' of https://github.com/Masaq-/iodine into Masaq--delay-variance-option 2017-06-22 17:22:34 +02:00
frekky ad27563d32 Merge with autotools branch 2017-06-22 16:59:48 +02:00
Masaq- 0d93784715 option (-J0) to autodetect delay variance factor 2017-06-09 03:50:46 +00:00
Masaq- 1cbe946676 recalculate timeout in immediate mode also 2017-04-03 20:22:34 +00:00
Masaq- d10bea1607 store the delay variance factor in a double 2017-04-02 16:29:19 +00:00
Masaq- d26ddb9a07 add fine-tuning option -J to set delay variance factor 2017-04-02 02:42:23 +00:00
Barak A. Pearlmutter 11b6da12ff Merge remote-tracking branch 'yarrick/master' into autotools
only non-trivial conflict is the CC option -std=c99, which I defer
2016-12-28 11:15:45 +01:00
frekky 67c7ae15b8 Fix uninitialised variable 2016-12-09 10:00:22 +08:00
frekky adee2b7996 Merge branch 'fix-socket-length' of https://github.com/jedisct1/iodine into jedisct1-fix-socket-length 2016-12-09 09:34:10 +08:00
frekky 674c3514dc Merge branch 'Masaq--a6-dname' 2016-12-09 09:27:49 +08:00
frekky 458117c14c fixed write warning 2016-12-09 09:27:08 +08:00
frekky 192b73cf68 Fixed client upenctest 2016-12-09 08:33:09 +08:00
Masaq- 2e6a5876d6 add support for more query types: A6 AAAA DNAME PTR 2016-11-07 11:47:20 +00:00
Frank Denis dd1d12e8fb Store the length of name servers addresses
Always passing sizeof(struct sockaddr_storage) only works, by accident, on Linux.
It fails on macOS and BSD.
2016-11-04 17:08:34 +01:00
Frank Denis 756dc2005d Rename nameserv_addrs_len to nameserv_addrs_count 2016-11-04 17:02:45 +01:00
frekky dbe9a10fc1 Fix version check and codec check to be backwards compatible 2016-09-24 21:39:28 +08:00
frekky a5a936f4e4 Implemented TCP forward function (can be used with SSH proxycommand) 2016-02-07 21:59:00 +08:00
frekky d6b48fe4e1 Updated client-side TCP forwarding command line options 2016-02-04 20:44:34 +08:00
frekky ffcd9da980 Added client support for negotiating TCP forward options 2016-01-29 22:12:05 +08:00
frekky 5233c2ab1e Cleaned up client send_packet functions, protocol changes 2016-01-22 21:57:33 +08:00
frekky ea062a0525 Fixed stats format warnings 2016-01-10 22:07:50 +08:00
frekky 07181e6a6a Fixed format string warnings when compiling for 32 bit systems 2016-01-10 22:00:52 +08:00
frekky 122e42a5f7 Always print window sizes on startup 2016-01-09 22:13:13 +08:00
frekky 7068bcc08d Added command line option presets (--preset or -Y)
Fixed some refactoring issues and passing this.* as arguments
2016-01-09 19:29:17 +08:00
frekky 147119afee Refactor client code to use client_instance 2016-01-09 15:04:39 +08:00
frekky 68a53c4565 Fixed clang warnings + debug build 2015-11-21 19:27:28 +08:00
frekky 4a565fd664 Improve data flow, better debugging, fixed ping CMC and frag timeout 2015-11-10 20:54:01 +08:00
frekky 3bcfe91769 Fixed raw UDP mode + improved debugging 2015-10-27 18:33:44 +08:00
frekky 87edca99b4 Added downstream window fragment timeout option (-j) 2015-10-27 17:25:56 +08:00
frekky 235d3be538 Improved timings + fixed immediate mode send interval.
Still switches to immediate mode too eagerly and reduces timeout very
quickly (especially with lots of SERVFAILs)
2015-10-17 22:28:10 +08:00
frekky ceaac64814 Refactored client/server to use debug macro 2015-10-04 22:39:40 +08:00
frekky 41ec2ae79c Added statistics printout and command line option 2015-10-04 22:13:47 +08:00
frekky 1b85d23087 Fixed option handshake and query tracking (now works) 2015-10-03 22:09:34 +08:00
frekky e454a7edb5 Modified options packet to change more than 1 option at a time 2015-09-28 20:06:23 +08:00
frekky c7cff96055 More connection stats, timeout control + compression flags, client-side
query tracking; lazy mode is now possible with windowing protocol.
2015-09-28 13:07:00 +08:00
frekky 0449c465e7 Re-implemented working DNS tunnelling (with windows!) 2015-08-29 20:11:46 +08:00
frekky 8e08c007c5 Window buffer max_fragsize adjusted according to MAX_HOSTNAME and
current upstream codec
2015-08-23 22:14:27 +08:00
frekky 96f9270b7f Removed unhelpful coding errors. 2015-08-21 23:24:53 +08:00
frekky 844abefcf8 A little bit of refactoring - separated iodined.c into separate files
Fixed up client side compile issues
Removed old packet handling code - TODO: use sliding window buffer
instead
2015-08-21 16:57:54 +08:00
frekky 83f70608fc Client side sliding window implementation (requires further testing) 2015-08-21 11:08:47 +08:00
frekky 3e7cf55fe4 Added option for multiple nameservers, used in round-robin 2015-08-14 22:07:48 +08:00
Erik Ekman c269a00344 Add support for Android L
Build position-indepent executables, required for Android L (5.0+)
They also work with kitkat.

Add new maketarget "cross-android-old" that builds without PIE
for older versions.

Include both new and old versions in latest-android.zip. Add arm64.

Hopefully solves github PR #14.
2015-08-05 19:36:28 +02:00
Erik Ekman b4e9148df8 Support raw mode for both IPv4 and IPv6
Read destination address of IP request packet and return it.
Check length in client and use it as IPv4 or v6 depending on length.
2015-06-28 22:41:54 +02:00
Erik Ekman 9a45c4aa66 Change license wording to follow ISC license exactly
"Permission to use, copy, modify, and distribute this software" is now
"Permission to use, copy, modify, and/or distribute this software".

Add license header to source files missing one.
2014-08-07 21:18:33 +02:00
Barak A. Pearlmutter 46532539c2 Rename VERSION define
prep for autotools: autoconf defines VERSION so s/VERSION/PROTOCOL_VERSION/
2014-08-07 12:55:59 +02:00
Erik Ekman eec0a868d9 Set correct sockaddr length when sending
Fix EINVAL error on NetBSD
2014-06-16 22:28:04 +02:00
Erik Ekman 3ebcd29b13 Add support for using an unspecified RR type
Add PRIVATE query type with id 65399 (private use range).
According to RFC3597 the reply data in a query with unspecified RR type must be handled
as unstructured binary data, which means it can contain raw packet data just like the NULL type.
Since the reply format is optimal it is ordered just after NULL in the priority order.
2014-06-09 20:06:36 +02:00
Erik Ekman 1f4b9250cf Check that supplied query type is valid 2014-06-09 18:56:32 +02:00
Erik Ekman 4d7678dc5b Prefix exported functions from client.c 2014-06-09 18:11:16 +02:00
Erik Ekman a23899513d Remove trailing whitespace 2014-06-01 08:46:54 +02:00