Guus Sliepen
a39a9506cd
Move free()s at the end om main() to the proper destructor functions.
2009-01-09 12:36:06 +01:00
Guus Sliepen
67df7fb7e1
Only send packets via UDP if UDP communication is possible.
...
When no session key is known for a node, or when it is doing PMTU discovery but
no MTU probes have returned yet, packets are sent via TCP. Some logic is added
to make sure intermediate nodes continue forwarding via TCP. The per-node
packet queue is now no longer necessary and has been removed.
2009-01-03 22:33:55 +01:00
Guus Sliepen
b069da90d6
Consistently allocate device and iface variables on the heap.
...
This fixes a segfault when no Device has been specified and tinc exits, and it
would try to free() a static string. Thanks to Borg for spottin.
2009-01-03 22:06:10 +01:00
Guus Sliepen
f81cea3bdc
Update documentation for git.
2008-12-27 11:09:43 +01:00
Guus Sliepen
c81f90b91a
Releasing 1.0.9.
2008-12-26 13:47:34 +00:00
Guus Sliepen
a4d99ebf50
Add missing parentheses in check for IPv4 multicast addresses.
2008-12-26 12:46:45 +00:00
Guus Sliepen
099bc56f53
Apply patch from Max Rijevski fixing a memory leak when closing connections.
...
It also cleans up more when stopping tinc, helping tools like valgrind.
2008-12-23 23:14:37 +00:00
Guus Sliepen
de032054de
Handle broadcast and multicast packets in router mode.
...
Multicast packets are treated as broadcast packets.
Based on a patch from Max Rijevski.
2008-12-23 22:31:38 +00:00
Guus Sliepen
a5f899a979
Update the manpage as well, and some whitespace to make its source more legible.
2008-12-22 21:49:23 +00:00
Guus Sliepen
e8f08ced76
Update documentation.
...
- TCPOnly is not experimental.
- Do not mention old Linux kernels and Ethertap anymore.
- Document the DeviceType, PMTU and PMTUDiscovery options.
2008-12-22 21:29:21 +00:00
Guus Sliepen
0e4d419aae
Enable PMTU discovery by default.
2008-12-22 20:35:45 +00:00
Guus Sliepen
e9576632dc
Update copyright information.
2008-12-22 20:27:52 +00:00
Guus Sliepen
f50dc972cd
Update Dutch translation.
2008-12-22 19:43:49 +00:00
Guus Sliepen
26b490e86b
Make sure IPv6 sockets are IPv6 only.
...
This will get rid of the "Can't bind to 0.0.0.0 port 655/tcp: Address already
in use" message on Linux.
2008-12-22 19:40:40 +00:00
Guus Sliepen
c6830ba821
Use TUNIFHEAD by default on FreeBSD to make sure IPv6 works.
2008-12-22 19:33:37 +00:00
Guus Sliepen
a269ec4193
Treat virtual network device as tap if Mode = switch or hub.
...
On OpenBSD, the link0 flag should still be set in tinc-up or by other means.
2008-12-21 16:19:31 +00:00
Guus Sliepen
38c2d6c1da
Correct debug message.
2008-12-05 14:17:39 +00:00
Guus Sliepen
a36259435c
Prevent freeing a NULL pointer when a hostname is unresolvable.
2008-11-18 15:11:27 +00:00
Guus Sliepen
4a1740ede7
Do not try to send REQ_KEY or ANS_KEY requests to unreachable nodes.
2008-10-25 19:54:00 +00:00
Guus Sliepen
cb52aa0683
Fix reading configuration files that do not end with a newline.
2008-10-25 18:10:08 +00:00
Guus Sliepen
b2cee41b18
Make sure the prefixlength of subnets is sane.
...
Thanks to Sven-Haegar Koch for spotting the bug and providing a fix.
2007-12-14 21:17:08 +00:00
Guus Sliepen
d7ca0300a3
Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing this.
2007-08-17 22:09:00 +00:00
Guus Sliepen
cf2be57494
Releasing 1.0.8.
2007-05-16 17:16:09 +00:00
Guus Sliepen
6af8900f8e
Don't free struct addrinfo too early. Spotted by Christian Cier-Zniewski.
2007-05-16 14:46:25 +00:00
Guus Sliepen
31a190dc7d
Update dutch translation.
2007-05-16 14:42:41 +00:00
Guus Sliepen
480dd127c8
Make sure connection->name is never NULL.
2007-05-16 14:42:08 +00:00
Guus Sliepen
f0cf4991e2
Apply patch from "dnk" making sockets non-blocking under Windows.
2007-05-14 09:21:09 +00:00
Guus Sliepen
ab6f76f6a9
Close the proper filedescriptor (if it exists).
2007-02-14 09:32:16 +00:00
Guus Sliepen
45fca3c723
Apply patch from Scott Lamb fixing some memory and resource leaks.
2007-02-14 09:21:34 +00:00
Guus Sliepen
6c6535a416
Apply patch from Scott Lamb preventing an infinite loop when sending SIGALRM.
2007-02-14 09:20:20 +00:00
Guus Sliepen
16c8b0e5bb
Releasing 1.0.7.
2007-01-05 15:03:07 +00:00
Guus Sliepen
a1e72f84d0
Update copyright notices.
2007-01-05 13:18:36 +00:00
Guus Sliepen
a22ef25f9b
No things to do for the 1.0 branch except bugfixing.
2007-01-05 13:17:33 +00:00
Guus Sliepen
d80cc7a5cc
rename() cannot replace existing files on Windows.
2007-01-05 05:44:01 +00:00
Guus Sliepen
5214ece030
Fix generic BSD tun device to write only the actual packet length.
...
Due to a copy&paste bug, it tried to write a packet with the maximum size.
This was not a problem until the maximum size was increased to support VLANs.
2007-01-05 04:49:02 +00:00
Guus Sliepen
40f02ff8ee
Tapreader socket should be bound to localhost only.
2007-01-04 15:28:36 +00:00
Guus Sliepen
03f3fc01e8
Use a ringbuffer in shared memory to transfer packets from the tapreader thread to the main thread.
...
It's a wonder it ever worked before. The socket that is created is not of a
datagram type, therefore packet boundaries were not preserved, which becomes
a problem as soon as the TAP-Win32 device receives packets in fast succession.
2007-01-03 18:18:54 +00:00
Guus Sliepen
52787a73b0
Releasing 1.0.6.
2006-12-18 17:38:05 +00:00
Guus Sliepen
b32c22cf54
Prevent compiler warnings about redefinition of EAI_FAMILY on FreeBSD 6.1.
2006-12-18 11:41:53 +00:00
Guus Sliepen
855806b2f7
Do a simple test for linux/if_tun.h instead of no test at all.
2006-12-16 16:53:58 +00:00
Guus Sliepen
0322c0883b
Remove the test for linux/if_tun.h.
...
It has been available for years on any decent Linux distribution.
Although linux/if_tun.h is now required to compile tinc,
you can still run it on systems which only support Ethertap.
2006-12-16 16:40:09 +00:00
Guus Sliepen
b55813dc0b
We do properly check for malloc and realloc.
2006-12-16 16:34:04 +00:00
Guus Sliepen
5219ee25a2
Use standard autoconf macros instead of our own.
2006-12-16 16:26:57 +00:00
Guus Sliepen
9d469a1969
Fix rule that creates html version of manpages.
2006-12-16 16:26:08 +00:00
Guus Sliepen
dd03a00396
Remove old Spanish translation.
2006-12-15 20:44:33 +00:00
Guus Sliepen
031e09f865
Remove unnecessary stuff from configure.in.
2006-12-15 20:43:39 +00:00
Guus Sliepen
b834d67d7c
Use the correct next pointer.
2006-12-12 14:54:39 +00:00
Guus Sliepen
8b55dfacb1
When building the minimum spanning tree, make sure we start from a reachable node.
2006-12-12 14:49:09 +00:00
Guus Sliepen
47d916ec5e
Search for lzo/lzo1x.h, lzo2/lzo1x.h and lzo1x.h.
2006-11-29 17:18:39 +00:00
Guus Sliepen
1bb5a284fe
Make sure resolved addressed for outgoing connections are freed, if there are any.
2006-11-29 16:57:46 +00:00