Guus Sliepen
f017c7f98f
Add support for VDE through libvdeplug.
...
When compiled with vde/device.c, tinc will connect to a vde_switch instance
instead of using a tun/tap device.
2011-02-07 18:34:55 +01:00
Guus Sliepen
8d18cc6c4e
Fix typo spotted by Andrew Scheller.
2011-01-29 10:49:44 +01:00
Guus Sliepen
b3731c0409
Proper check and dropin replacement for usleep().
2011-01-12 20:57:14 +01:00
Guus Sliepen
4b8a599303
Update the NEWS.
2011-01-02 17:25:24 +01:00
Guus Sliepen
c228da54d4
Update the manual.
2011-01-02 17:25:03 +01:00
Guus Sliepen
4575c6c7df
Document the behavior of "-n."
2011-01-02 17:24:23 +01:00
Guus Sliepen
6c05bf082b
Remove unused variables.
2011-01-02 16:59:42 +01:00
Guus Sliepen
6a51d89cf7
Replace bogus #else with #endif.
...
Found by cppcheck, which complained about lenin not being initialized, but the
real problem is that reading packets would fail when using code compiled with
--tunemu on a normal tun device.
2011-01-02 16:55:42 +01:00
Guus Sliepen
d7636352ce
Limit field width when scanning PID file.
...
Cppcheck warns that scanf() might otherwise crash when presented with a huge,
bogus PID file.
2011-01-02 16:52:36 +01:00
Guus Sliepen
3ce5e292da
Close all filedescriptors in Solaris close_device().
2011-01-02 16:50:24 +01:00
Guus Sliepen
f99661a4ca
Always send MTU probes at least once every PingInterval.
...
Before, if MTU probes failed, tinc would stop sending probes until the next
time keys were regenerated (by default, once every hour). Now it continues to
send them every PingInterval, so it recovers faster from temporary failures.
2011-01-02 15:02:23 +01:00
Guus Sliepen
cac0a5c651
Use setpriority() instead of nice() on UNIX-like systems.
...
The return value of nice() can not reliably indicate errors. The return value
of the setpriority() call is well-defined.
2010-11-20 14:31:11 +00:00
Guus Sliepen
3f59a26d80
Do not try to dereference myself->connection->config_tree.
...
This was a bug introduced due to an incomplete merge (commit
ff71f28902
).
2010-11-19 12:26:20 +00:00
Guus Sliepen
886a6f61a1
Merge branch 'master' into 1.1
...
Conflicts:
src/net_packet.c
src/openssl/rsagen.h
src/protocol_auth.c
src/protocol_key.c
2010-11-19 12:22:48 +00:00
Guus Sliepen
d91903ef3c
Attribution for Brandon Black.
2010-11-16 17:28:41 +01:00
Guus Sliepen
e764ff7be9
Fix variable length array declaration.
2010-11-16 16:45:36 +01:00
Guus Sliepen
5eb0440110
Free replay window when freeing a node_t.
2010-11-13 21:36:51 +01:00
Guus Sliepen
a9445e38f2
Fix warning message when setting SO_RCVBUF or SO_SNDBUF fails.
2010-11-13 21:34:59 +01:00
Brandon L Black
0d61d4ae13
Improved handling of queue-jumping packets on receive
2010-11-13 21:25:48 +01:00
Brandon L Black
23acc19bc0
Configurable ReplayWindow size, zero disables
2010-11-13 21:25:46 +01:00
Brandon L Black
8dfe1b374e
Configurable SO_RCVBUF/SO_SNDBUF for the UDP socket
2010-11-13 21:25:44 +01:00
Brandon L Black
3f410e2f8f
Experimental IFF_ONE_QUEUE support for Linux
2010-11-13 21:25:41 +01:00
Guus Sliepen
9e3ca39773
Use variable length arrays instead of alloca().
2010-11-13 15:55:38 +01:00
Guus Sliepen
e2e6ec8050
Provide usleep() for Windows.
2010-11-13 15:50:39 +01:00
Guus Sliepen
23dddc2593
Link tincctl with dropin.o.
2010-11-13 15:46:19 +01:00
Guus Sliepen
a22041922f
Merge branch 'master' into 1.1
...
Conflicts:
doc/tincd.8.in
lib/pidfile.c
src/graph.c
src/net.c
src/net.h
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/netutl.c
src/node.c
src/node.h
src/protocol_auth.c
src/protocol_key.c
src/tincd.c
2010-11-12 16:15:29 +01:00
Guus Sliepen
930bf74fbe
Don't use strlen() on a NULL pointer.
...
A bug introduced in commit 667b1bac77
caused tinc
to crash on startup.
2010-11-12 11:38:05 +01:00
Guus Sliepen
a07aa92176
Add short options -R and -U to the tincd(8) manpage.
2010-11-12 11:33:01 +01:00
Guus Sliepen
66b7aea294
Read error counter must be static.
2010-11-02 14:23:43 +01:00
Guus Sliepen
a91bf2dfcd
Quit when there are too many consecutive errors on the tun/tap device.
...
Although transient errors sometimes happen on the tun/tap device (for example,
if the kernel is temporarily out of buffer space), there are situations where
the tun/tap device becomes permanently broken. Instead of endlessly spamming
the syslog, we now sleep an increasing amount of time between consecutive read
errors, and if reads still fail after 10 attempts (approximately 3 seconds),
tinc will quit.
2010-11-02 14:18:35 +01:00
Michael Tokarev
aca70cd3c3
Treat netname="." in a special way.
...
Treat netname "." in a special way as if there was no netname
specified. Before, f.e. tincd -n. -k didn't work as it tried
to open /var/run/tinc-.pid. Now -n. works as if there was no
-n option is specified.
Signed-Off-By: Michael Tokarev <mjt@tls.msk.ru>
2010-10-24 13:32:36 +02:00
Guus Sliepen
5f729f76f5
Remove unused variables.
...
These were caused by commit 667b1bac77
.
2010-10-22 22:46:44 +02:00
Guus Sliepen
20ae7dd8c1
Abort disabling old PEM keys on I/O errors.
2010-10-22 22:43:50 +02:00
Guus Sliepen
a08462bf84
Ensure there is a newline character before a PEM key is written.
2010-10-22 22:42:21 +02:00
Guus Sliepen
c6ccbadfcf
Attribution for Timothy Redaelli.
2010-10-22 13:40:04 +02:00
Guus Sliepen
1c2cd7ed27
Attribution for Julien Muchembled.
2010-10-22 13:17:42 +02:00
Guus Sliepen
667b1bac77
Remove duplicate command-line option parsing.
...
Also fix parsing of command-line host configuration options for the local node.
2010-10-22 13:06:06 +02:00
Guus Sliepen
ff71f28902
Merge local host configuration with server configuration.
...
With some exceptions, tinc only accepted host configuration options for the
local node from the corresponding host configuration file. Although this is
documented, many people expect that they can also put those options in
tinc.conf. Tinc now internally merges the contents of both tinc.conf and the
local host configuration file.
2010-10-22 12:47:12 +02:00
Julien Muchembled
8c3105283a
New '-o' option to configure server or hosts from command line
...
Options given on the command line have precedence over configuration from files.
This can be useful, for example, for a roaming node, for which 'ConnectTo' and
<host>.Address depends on its location.
2010-09-05 22:26:26 +02:00
Guus Sliepen
4b6a9f1c1f
Do not append an address to ANS_KEY messages if we don't know any address.
...
This would let tinc raise an exception when an ANS_KEY request crossed a
DEL_EDGE request for the node sending the key.
2010-06-04 16:03:19 +02:00
Guus Sliepen
798fa2f04c
Use 64 bit counters to keep track of bytes sent/received from the virtual network interface.
2010-06-04 15:04:08 +02:00
Guus Sliepen
4a21aabada
Detect and prevent two nodes with the same Name being on the VPN simultaneously.
...
In this situation, the two nodes will start fighting over the edges they announced.
When we have to contradict both ADD_EDGE and DEL_EDGE messages, we log a warning,
and with 25% chance per PingTimeout we quit.
2010-06-04 14:53:52 +02:00
Guus Sliepen
dbf3d168b7
Use strrchr() insteaad of rindex().
...
The latter function is deprecated, some build environments do not support.
2010-05-07 12:24:49 +02:00
Timothy Redaelli
eda7179874
Fix warnings under BSD
2010-05-06 21:19:49 +02:00
Timothy Redaelli
df985256a7
Fix warnings showed using -D_FORTIFY_SOURCE=2
2010-05-04 00:54:37 +02:00
Guus Sliepen
f5122ccece
Fix all warnings when compiling with mingw64.
2010-05-01 15:39:59 +02:00
Guus Sliepen
ef92a5725c
OpenSSL 1.0.0 compiled for 64 bit Windows requires linking with -lcrypt32.
2010-05-01 15:39:03 +02:00
Guus Sliepen
0fdd7da520
Use intptr_t instead of long to store a pointer.
2010-05-01 15:38:04 +02:00
Guus Sliepen
c94ede3b87
Define WINVER before including any other header file on Windows.
2010-05-01 15:37:11 +02:00
Guus Sliepen
8b70c5be9b
Remove obsolete lib/ directory.
2010-04-30 23:18:22 +02:00