Guus Sliepen
d93a37928b
Fix warnings from cppcheck.
2012-10-07 17:53:23 +02:00
Guus Sliepen
5d0812d492
Remove a debug message.
2012-10-07 14:06:47 +02:00
Guus Sliepen
c2a9ed9e98
Handle packets encrypted via SPTPS that need to be forwarded via TCP.
2012-10-07 14:03:50 +02:00
Guus Sliepen
bb6b97ce34
Make datagram SPTPS key exchange more robust.
...
Similar to old style key exchange requests, keep track of whether a key
exchange is already in progress and how long it took. If no key is known yet
or if key exchange takes too long, (re)start a new key exchange.
2012-10-07 13:31:19 +02:00
Guus Sliepen
b99af2f813
Useful error messages when writing to a meta connection fails.
2012-10-07 11:45:54 +02:00
Guus Sliepen
e053713465
When terminating, keep control connections open until the end.
...
This ensures all device files and listening sockets have been closed before
tincctl gets notified of tincd's termination.
2012-10-06 21:16:17 +02:00
Guus Sliepen
86116bb022
Clear connection options and status fields in free_connection_partially().
...
Most fields should be zero when reusing a connection. In particular, when an
outgoing connection to a node which is reachable on more than one address is
made, the second connection to that node will have status.encryptout set but
outctx will be NULL, causing a NULL pointer dereference when
EVP_EncryptUpdate() is called in send_meta() when it shouldn't.
2012-10-06 21:15:19 +02:00
Guus Sliepen
ef9358c0d6
Improve starting/stopping tincd using tincctl.
...
When starting tincd, tincctl now strips non-options from the command line, and
sets argv[0] to the name of the tincd command instead of copying its own
command name.
When stopping a running tincd, tincctl now waits for it to terminate.
2012-10-06 17:45:03 +02:00
Guus Sliepen
47f33e07ff
Fix off-by-one error.
...
Apart from writing 1 byte beyond an array allocated on the stack, this slipped
an unitialized byte in the seed used for key generation.
2012-10-06 16:53:43 +02:00
Guus Sliepen
20b441a6de
Libreadline might depend on libcurses.
2012-10-01 10:42:13 +02:00
Guus Sliepen
3887e6dcb5
Remove abort() call that accidentily sneaked into commit dd1b69e
.
2012-10-01 10:39:15 +02:00
Guus Sliepen
0b0949e5bb
Make sure sptps_test compiles without -flto.
2012-10-01 10:36:23 +02:00
Guus Sliepen
b381acd60d
Remove unused function declaration.
2012-09-30 23:12:43 +02:00
Guus Sliepen
dd1b69e31f
Fix not reading Port statement from host config file.
2012-09-30 22:43:48 +02:00
Guus Sliepen
6dfdb32361
Merge branch 'master' into 1.1
...
Conflicts:
lib/utils.c
src/net_setup.c
src/process.c
src/protocol_auth.c
src/protocol_key.c
src/utils.h
2012-09-30 15:00:47 +02:00
Guus Sliepen
c4940a5c88
Add strict checks to hex to binary conversions.
...
The main goal is to catch misuse of the obsolete PrivateKey and PublicKey
statements.
2012-09-30 13:45:47 +02:00
Guus Sliepen
3bd810ea79
Attribution for Martin Schürrer.
2012-09-30 13:45:39 +02:00
Martin Schürrer
5a161e86cf
Output details of encryption errors
2012-09-30 02:04:55 +02:00
Guus Sliepen
9e76c464b2
Remove some debugging messages.
2012-09-28 17:51:48 +02:00
Guus Sliepen
e971130b60
Make tincctl robust against dropped control connections.
2012-09-28 17:36:25 +02:00
Guus Sliepen
c5325ffdd1
Correctly add/remove outgoing connections when reloading configuration.
2012-09-28 17:05:01 +02:00
Guus Sliepen
f417271ea1
Fix column sorting, make all lists sortable.
2012-09-28 17:03:14 +02:00
Guus Sliepen
aee86011ff
Let the GUI handle the new dump format.
2012-09-27 22:12:15 +02:00
Guus Sliepen
fac5593f44
Fix links in documenation.
2012-09-27 17:19:02 +02:00
Guus Sliepen
2e09986a1f
Fix links in documentation.
2012-09-27 17:18:49 +02:00
Guus Sliepen
f70cbc9d3e
Comment out old public/private keys when generating new ones.
2012-09-27 15:45:02 +02:00
Guus Sliepen
38dbc63f11
Update documentation of the "dump graph" command.
2012-09-26 23:56:21 +02:00
Guus Sliepen
1f312137d5
Allow dumping either directed or undirected graphs.
...
Internally, tinc maintains a directed graph of the meta connections between
nodes. However, this causes graphviz to draw two lines between nodes, which is
not always desirable. The "dump graph" command now defaults to dumping an
undirected graph, the "dump digraph" command will dump a directed graph.
2012-09-26 23:52:36 +02:00
Guus Sliepen
d6388d782e
Let tincctl parse and format dumps.
...
At the moment it just reproduces the old format.
2012-09-26 23:18:32 +02:00
Guus Sliepen
9ade39b7d5
Keep last known address and time since reachability changed.
...
This allows tincctl info to show since when a node is online or offline.
2012-09-26 22:20:43 +02:00
Guus Sliepen
1e5deec973
Remove remnants of Ethertap and old TUNSETIFF ioctl().
2012-09-25 22:28:08 +02:00
Guus Sliepen
125dd0dbcf
Fix typo in manpage.
2012-09-25 22:12:36 +02:00
Guus Sliepen
72f08932cf
Don't ignore Makefile.am.
2012-09-24 14:56:00 +02:00
Guus Sliepen
66e702d90d
Attribution for Vil Brekin and some code style cleanups.
2012-09-24 14:02:07 +02:00
Vilbrekin
f421a64077
Android cross-compilation instructions.
2012-09-24 13:55:38 +02:00
Vilbrekin
afe4bf62ec
Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compilation.
2012-09-24 13:55:29 +02:00
Vilbrekin
c6720f1a60
Add basic .gitignore file, cleaning (most) files generated by autotools.
2012-09-24 13:55:27 +02:00
Vilbrekin
f2570c1b7f
Replace hard-code with new ScriptsInterpreter configuration property.
...
This new setting allows choosing a custom script interpreter used for the various tinc callbacks.
If none is specified, the script itself is called as executable (as before).
This is particularly useful when storing tinc configuration and script on a mount point with no-exec attribute.
2012-09-24 13:55:24 +02:00
Vilbrekin
8a6f278fd2
Basic patch for android cross-compilation.
...
Commented non-existing functions in android NDK.
Prefix scripts execution with shell binary to allow execution on no-exec mount points.
Everyything is currently hard coded, while it should use pre-compiler variables...
2012-09-24 13:53:11 +02:00
Guus Sliepen
2dc8deb104
Ensure sptps_test compiles with -flto.
2012-09-13 21:35:29 +02:00
Guus Sliepen
90f1cba1fd
Replace node_udp_tree with a hash table.
2012-09-05 13:05:48 +02:00
Guus Sliepen
4c05afd19a
Use hash tables to lookup owners of addresses.
2012-09-05 12:45:36 +02:00
Guus Sliepen
6b6a025488
Add a simple hash table implementation.
2012-09-05 12:44:41 +02:00
Guus Sliepen
e9de08be0d
Remove newlines at end of log messages.
2012-09-04 14:21:50 +02:00
Guus Sliepen
05dac63dbc
Remove some debug messages.
2012-09-04 14:16:05 +02:00
Guus Sliepen
742f7bb04e
Properly handle SPTPS packets with stripped Ethernet headers.
2012-08-30 14:21:23 +02:00
Guus Sliepen
d74b81b61e
Fix node name check for "connect" and "disconnect" commands.
2012-08-30 14:00:34 +02:00
Guus Sliepen
5567c0d410
Quit when "exit" or "quit" commands are used in tincctl's shell.
2012-08-05 17:25:31 +02:00
Guus Sliepen
d18519ae21
Fix segfault when using tincctl's shell without readline.
2012-08-05 17:03:57 +02:00
Guus Sliepen
b332bd9646
Add bash completion script.
2012-08-05 13:54:14 +02:00