Sven-Haegar Koch
434e57ae5e
sparse fixup: warning: Using plain integer as NULL pointer
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
f4010694b3
sparse fixup: warning: non-ANSI function declaration of function '...'
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
d772289f6d
sparse fixup: warning: symbol '...' was not declared. Should it be static?
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
02e32cf61e
sparse fixup: error: too many arguments for function send_key_changed
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
b995243ac3
sparse fixup: error: dubious one-bit signed bitfield
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
bbd0025ae3
Use same definition for xalloc_fail_func as is really used.
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
3fca2cad48
Removed two newlines from the end of log messages which created empty lines.
2011-05-28 15:24:39 +02:00
Sven-Haegar Koch
9cce44dfe3
Fixed error logging on "Input buffer full" condition.
2011-05-28 15:24:38 +02:00
Guus Sliepen
453c44e7b2
Add the ability to dump all traffic going through route() over a control connection.
...
One can get the packet stream in pcap format, which can be decoded using
tcpdump, for example:
tincctl -n <netname> pcap | tcpdump -r -
2011-05-22 14:17:30 +02:00
Guus Sliepen
54c900e961
Reset tcplen after use.
2011-05-22 14:02:27 +02:00
Guus Sliepen
8ddcad5fa1
Check if an event is initialized before calling event_del().
...
Libevent prints a warning to stderr if we do that.
2011-05-22 13:24:01 +02:00
Guus Sliepen
931e30f91a
Always compact the buffer if it has reached MAXBUFSIZE.
2011-05-22 13:24:01 +02:00
Guus Sliepen
90c7fafe59
Compact input buffer before trying to read instead of after.
...
Also log an error when the input buffer contains more than MAXBUFSIZE bytes
already, instead of silently claiming the other side closed the connection.
2011-05-22 13:20:44 +02:00
Guus Sliepen
8de8f1d9e2
Fix some compiler warnings.
2011-05-17 10:58:22 +02:00
Guus Sliepen
a80c18dd20
Use GetItemCount() on ListCtrls instead of directly accessing ItemCount.
2011-05-17 10:57:30 +02:00
Guus Sliepen
f536504a7d
Add top.h.
2011-05-16 09:48:19 +02:00
Guus Sliepen
e272fab858
Add tincctl.h.
2011-05-16 09:46:54 +02:00
Guus Sliepen
6d97cb1e22
Nicer top command.
...
- Configurable refresh interval.
- Switch between cumulative count or current rate.
- Configurable sorting.
2011-05-15 16:30:13 +02:00
Guus Sliepen
4574b04f79
Allow inserting items in the middle of a list.
2011-05-15 16:29:54 +02:00
Guus Sliepen
97355690b9
Add a very primitive "top" command to tincctl.
2011-05-15 13:16:48 +02:00
Guus Sliepen
ec495b2f15
Add an autoconf check for the curses library.
2011-05-15 12:06:21 +02:00
Guus Sliepen
362d8a6358
Dump traffic statistics over control sockets.
2011-05-15 11:59:13 +02:00
Guus Sliepen
f5843e7d64
Add per-node traffic counters.
2011-05-15 00:42:29 +02:00
Guus Sliepen
ffa3a443b9
Several fixes for the buffer code.
2011-05-14 22:30:23 +02:00
Guus Sliepen
cdb793f687
Remove use of bufferevent and eventbuffers, use our own buffering instead.
2011-05-14 19:20:56 +02:00
Guus Sliepen
f431fcb35f
Add simple buffer management code.
...
Libevent 2.0's buffer code is not completely backward compatible with 1.4's.
In order to not (mis)use it anymore, we implement it ourselves. The buffers
are automatically expanding when necessary. When consuming data from the
buffer, no memmove()s are performed. Only when adding to the buffer would
write past the end do we shift everything back to the start.
2011-05-14 19:15:04 +02:00
Guus Sliepen
3794e551c7
Fix check for event initialization due to the merge.
2011-05-14 11:52:35 +02:00
Guus Sliepen
ce8775000a
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
...
Conflicts:
NEWS
README
configure.in
doc/tincd.8.in
lib/pidfile.c
src/bsd/device.c
src/dropin.h
src/net.c
src/net_packet.c
src/node.c
src/process.c
src/tincd.c
2011-05-09 21:35:14 +02:00
Guus Sliepen
5686ad80b5
Releasing 1.0.14.
2011-05-08 23:17:46 +02:00
Guus Sliepen
0d906489f2
Include <inttypes.h> when using intptr_t.
2011-05-08 23:12:44 +02:00
Guus Sliepen
dc887f5011
Ensure proper linking with OpenSSL with recent versions of MinGW.
2011-05-08 23:12:06 +02:00
Guus Sliepen
67766d65f0
Update THANKS and copyright information.
2011-05-08 21:22:20 +02:00
Guus Sliepen
6e6b037ef4
Check for EVP_EncryptInit_ex instead of SHA1_Version in OpenSSL.
...
The latter function disappeared, and wasn't actually used in tinc, so now we
check on a function that we do use.
2011-05-08 21:06:06 +02:00
Guus Sliepen
257cb6ac60
Always use the default signal handler for ABRT signals.
...
This will allow coredumps to be generated when tinc is daemonized.
Also add the -kABRT option.
2011-05-08 12:40:44 +02:00
Guus Sliepen
eacb5a28fb
Increase threshold for detecting two nodes with the same Name.
...
In commit 4a21aabada
, code was added to detect
contradicting ADD_EDGE and DEL_EDGE messages being sent, which is an indication
of two nodes with the same Name connected to the same VPN. However, these
contradictory messages can also happen when there is a network partitioning. In
the former case a loop happens which causes many contradictory message, while
in the latter case only a few of those messages will be sent. So, now we
increase the threshold to at least 10 of both ADD_EDGE and DEL_EDGE messages.
2011-05-08 12:16:26 +02:00
Julien Muchembled
f11c6101f3
Fix command-line '-o' option for host configuration
...
This fixes a regression introduced by commit 667b1ba
while refactoring option
parsing code.
2011-04-28 14:30:32 +02:00
Guus Sliepen
0aa86d4b8b
Do not set indirect flag on edges from nodes with multiple addresses.
...
Since tinc now handles UDP packets with a different source address and port
than used for TCP connections, the heuristic to treat edges as indirect when
tinc could detect that multiple addresses were used does not make sense
anymore, and can actually reduce performance.
2011-03-09 09:34:56 +01:00
Guus Sliepen
7cf68b5e35
Prevent anything from updating our own UDP address.
...
Because we don't want to keep track of that, and this will cause the node
structure from being relinked into the node tree, which results in myself
pointing to an invalid address.
2011-02-18 23:11:43 +01:00
Guus Sliepen
cdbbbfabea
Fix spurious misidentification of incoming UDP packets.
...
When a UDP packet was received with an unknown source address/port, and if it
failed a HMAC check against known keys, it could still incorrectly assign that
UDP address to another node. This would temporarily cause outgoing UDP packets
to go to the wrong destination address, until packets from the correct address
were received again.
2011-02-18 23:02:11 +01:00
Rumko
046d83bf91
DragonFlyBSD support
...
* added DragonFly BSD support
* added a check for sys/resource.h (needed on DragonFly)
2011-02-12 18:22:14 +01:00
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