Commit graph

  • 3321591d93 Use libevent to send MTU probes. Guus Sliepen 2007-05-17 22:01:07 +00:00
  • ee7844905f Configure events after obtaining a socket. Guus Sliepen 2007-05-17 21:47:27 +00:00
  • 294ce72441 Use libevent to handle HUP signal. Guus Sliepen 2007-05-17 21:34:58 +00:00
  • 4d0621b1f3 Use libevent to dump graphs when necessary. event_add() can be called repeatedly, the second and later calls are ignored if the event hasn't been removed yet. Guus Sliepen 2007-05-17 21:14:30 +00:00
  • 0f6f54ff8a Use a separate event structure to handle meta data writes. Make meta socket events persistent. Guus Sliepen 2007-05-17 20:20:10 +00:00
  • 17c8033029 128 listener sockets is way too much. Guus Sliepen 2007-05-17 19:52:12 +00:00
  • d8dea8091f Properly delete listener socket events on shutdown. Guus Sliepen 2007-05-17 19:51:26 +00:00
  • 6ea1dfc995 Port fixes from release 1.0.8. Guus Sliepen 2007-05-17 19:15:48 +00:00
  • cf2be57494 Releasing 1.0.8. Guus Sliepen 2007-05-16 17:16:09 +00:00
  • 6af8900f8e Don't free struct addrinfo too early. Spotted by Christian Cier-Zniewski. Guus Sliepen 2007-05-16 14:46:25 +00:00
  • 31a190dc7d Update dutch translation. Guus Sliepen 2007-05-16 14:42:41 +00:00
  • 480dd127c8 Make sure connection->name is never NULL. Guus Sliepen 2007-05-16 14:42:08 +00:00
  • f0cf4991e2 Apply patch from "dnk" making sockets non-blocking under Windows. Guus Sliepen 2007-05-14 09:21:09 +00:00
  • 3730156165 Only free members of connection_t that have been allocated. Guus Sliepen 2007-03-12 17:55:43 +00:00
  • 39f6d59b4b Lots of svn:ignore entries Scott Lamb 2007-02-27 08:13:41 +00:00
  • 38c25d62c2 Convert to libevent. Scott Lamb 2007-02-27 01:57:01 +00:00
  • 834290b00f A couple missed tevent things. (Sorry; had a couple changes queued.) Scott Lamb 2007-02-27 01:30:57 +00:00
  • 6362b12df7 Rename "event_t" to "tevent_t", along with associated functions. This relieves some confusion and problems during the libevent transition. In particular, "event_add" was defined by both. (The 't' stands for 'timeout', 'tinc', 'temporary', or some such.) Scott Lamb 2007-02-27 01:26:11 +00:00
  • 54431094d9 Created the 1.1 branch where large code changes can take place, at the same time keeping compatibility with 1.0. Guus Sliepen 2007-02-24 22:50:42 +00:00
  • ab6f76f6a9 Close the proper filedescriptor (if it exists). Guus Sliepen 2007-02-14 09:32:16 +00:00
  • 45fca3c723 Apply patch from Scott Lamb fixing some memory and resource leaks. Guus Sliepen 2007-02-14 09:21:34 +00:00
  • 6c6535a416 Apply patch from Scott Lamb preventing an infinite loop when sending SIGALRM. Guus Sliepen 2007-02-14 09:20:20 +00:00
  • 16c8b0e5bb Releasing 1.0.7. Guus Sliepen 2007-01-05 15:03:07 +00:00
  • a1e72f84d0 Update copyright notices. Guus Sliepen 2007-01-05 13:18:36 +00:00
  • a22ef25f9b No things to do for the 1.0 branch except bugfixing. Guus Sliepen 2007-01-05 13:17:33 +00:00
  • d80cc7a5cc rename() cannot replace existing files on Windows. Guus Sliepen 2007-01-05 05:44:01 +00:00
  • 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. Guus Sliepen 2007-01-05 04:49:02 +00:00
  • 40f02ff8ee Tapreader socket should be bound to localhost only. Guus Sliepen 2007-01-04 15:28:36 +00:00
  • 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. Guus Sliepen 2007-01-03 18:18:54 +00:00
  • 52787a73b0 Releasing 1.0.6. Guus Sliepen 2006-12-18 17:38:05 +00:00
  • b32c22cf54 Prevent compiler warnings about redefinition of EAI_FAMILY on FreeBSD 6.1. Guus Sliepen 2006-12-18 11:41:53 +00:00
  • 855806b2f7 Do a simple test for linux/if_tun.h instead of no test at all. Guus Sliepen 2006-12-16 16:53:58 +00:00
  • 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. Guus Sliepen 2006-12-16 16:40:09 +00:00
  • b55813dc0b We do properly check for malloc and realloc. Guus Sliepen 2006-12-16 16:34:04 +00:00
  • 5219ee25a2 Use standard autoconf macros instead of our own. Guus Sliepen 2006-12-16 16:26:57 +00:00
  • 9d469a1969 Fix rule that creates html version of manpages. Guus Sliepen 2006-12-16 16:26:08 +00:00
  • dd03a00396 Remove old Spanish translation. Guus Sliepen 2006-12-15 20:44:33 +00:00
  • 031e09f865 Remove unnecessary stuff from configure.in. Guus Sliepen 2006-12-15 20:43:39 +00:00
  • b834d67d7c Use the correct next pointer. Guus Sliepen 2006-12-12 14:54:39 +00:00
  • 8b55dfacb1 When building the minimum spanning tree, make sure we start from a reachable node. Guus Sliepen 2006-12-12 14:49:09 +00:00
  • 47d916ec5e Search for lzo/lzo1x.h, lzo2/lzo1x.h and lzo1x.h. Guus Sliepen 2006-11-29 17:18:39 +00:00
  • 1bb5a284fe Make sure resolved addressed for outgoing connections are freed, if there are any. Guus Sliepen 2006-11-29 16:57:46 +00:00
  • 5c69c390a1 Releasing 1.0.5. Guus Sliepen 2006-11-14 15:43:28 +00:00
  • e5b1b5cefb EWOULDBLOCK does not exist on platforms without O_NONBLOCK Guus Sliepen 2006-11-14 12:28:04 +00:00
  • 3353ab37c2 When deleting an entire tree, start at head, not at root. Guus Sliepen 2006-11-11 22:45:45 +00:00
  • 0714ac6c59 Nodes use events, so event system should be initialised first and destroyed last. Guus Sliepen 2006-11-11 22:44:15 +00:00
  • 35e4096120 Update Dutch translation. Guus Sliepen 2006-11-11 21:37:22 +00:00
  • 315ef3e42b Document GraphDumpFile option. Guus Sliepen 2006-11-11 20:37:58 +00:00
  • 8d393b30a9 Support and autodetect LZO version 2.0 and later. Guus Sliepen 2006-11-11 20:10:46 +00:00
  • bdb3c24cea Support and autodetect LZO version 2.0 and later. Guus Sliepen 2006-11-11 20:06:14 +00:00
  • 0d1ac68c59 popen() requires pclose(). Guus Sliepen 2006-11-11 14:37:03 +00:00
  • 0200d3cd5d Added graph dumping ability based on Markus Goetz's patch. Guus Sliepen 2006-11-11 14:11:16 +00:00
  • 1728d5b2c4 The "active" bit in node.status is not used. Guus Sliepen 2006-11-11 13:43:00 +00:00
  • 134dc8995b memcpy() addresses from packet headers before calling the lookup functions. This probably fixes a problem on the ARM architecture that causes tinc to fail to lookup IPv4 addresses. Guus Sliepen 2006-08-09 22:31:10 +00:00
  • 64e0519cb5 Remove unused variable. Guus Sliepen 2006-08-08 13:50:58 +00:00
  • ddcf079cad Remove unused parameter from maskcmp(). Guus Sliepen 2006-08-08 13:44:37 +00:00
  • c620df3c15 Remove unused variables. Guus Sliepen 2006-08-08 13:44:19 +00:00
  • 9fa27097dd Fix format string warnings. Guus Sliepen 2006-08-08 13:29:17 +00:00
  • eb391c52ee Do not break strict aliasing of status_t structs. Guus Sliepen 2006-08-08 13:21:08 +00:00
  • 2077451e07 Add generic host-up and host-down scripts. Thanks to Menno Smits for a patch. Guus Sliepen 2006-06-12 21:45:39 +00:00
  • f88c9942e1 Use memcpy() to copy sockaddrs returned by getaddrinfo(). Thanks to Miles Nordin for spotting this. Guus Sliepen 2006-06-11 18:53:27 +00:00
  • 412f3fb510 Restore length of the original packet in send_udppacket(). Guus Sliepen 2006-04-26 16:29:47 +00:00
  • de78d79db8 Update copyright notices, remove Ivo's email address. Guus Sliepen 2006-04-26 13:52:58 +00:00
  • 8ebb017a10 Fix a bug in handling prefixlengths that are not a multiple of 4. Thanks to Sven-Haegar Koch for spotting the bug and providing the fix. Guus Sliepen 2006-04-12 08:38:35 +00:00
  • af95368c0f Fix signedness compiler warnings. Guus Sliepen 2006-03-19 13:06:21 +00:00
  • fb1cda2ca4 Export flush_meta(). Guus Sliepen 2006-03-19 12:43:45 +00:00
  • 098090468a Missing #include. Guus Sliepen 2006-03-19 12:43:28 +00:00
  • a90f1b652c Make sure $NAME is set correctly when executing tinc-down script. Guus Sliepen 2006-02-06 12:30:51 +00:00
  • 228e7a5c8f Apply patch from Scott Lamb adding an output buffer for the TCP sockets. This helps coalescing multiple send_meta() commands into one TCP packet. Also limit the size of the output buffer before dropping PACKETs. Guus Sliepen 2006-01-19 17:13:18 +00:00
  • a5a4d2b865 Apply patch from Scott Lamb unifying configuration of TCP socket options. Guus Sliepen 2006-01-13 11:21:59 +00:00
  • e02f13cdb3 EVP_Cleanup() when quitting. Guus Sliepen 2006-01-13 11:09:19 +00:00
  • 0912260755 Enable OpenSSL ENGINE, so crypto hardware gets used. Thanks to Andreas van Cranenburgh. Guus Sliepen 2005-11-16 10:45:11 +00:00
  • 64e4c12778 Add alloca.h to the list of necessary header files. Guus Sliepen 2005-06-03 10:56:02 +00:00
  • e810545dc2 Prevent possible buffer overflows when using very large (>= 8192 bit) RSA keys. Thanks to Tonnerre Lombard for noticing! Guus Sliepen 2005-06-03 10:16:03 +00:00
  • 02746165a2 Releasing 1.0.4. Guus Sliepen 2005-05-04 19:38:28 +00:00
  • df3220a154 Update copyright notices. Guus Sliepen 2005-05-04 18:09:30 +00:00
  • 54a30e30ad Describe subnet-up/down scripts in documentation. Guus Sliepen 2005-05-04 16:53:11 +00:00
  • bded1b74cc Several splay tree fixes. Guus Sliepen 2005-05-04 15:56:25 +00:00
  • faaaa1ef38 Searching through splay trees may change the tree variable. Guus Sliepen 2005-05-04 15:52:55 +00:00
  • dc09f6fe89 Be on the safe side with initialisation of c->name. Guus Sliepen 2005-05-04 15:51:45 +00:00
  • 92c4a28d7d Remove unused (and potentially segfaulting) net2str() call. Guus Sliepen 2005-04-06 20:43:37 +00:00
  • 6363ed4d9c Don't try to add a non-existing node back to the node_udp_tree. Guus Sliepen 2005-01-20 15:14:25 +00:00
  • 39fe3b445c Nodes should only be in the node_udp_tree if they are reachable. Guus Sliepen 2005-01-04 22:19:56 +00:00
  • fe0bfa3e65 Correct size argument for strncat(). Guus Sliepen 2005-01-04 22:18:58 +00:00
  • 56c36a14d8 Use the proper free function. Guus Sliepen 2004-12-03 13:27:33 +00:00
  • 18c617ecf2 Free memory used by connection_t after it is deleted from the connection tree. Guus Sliepen 2004-12-03 13:22:18 +00:00
  • 672ad5634c Small fix. Guus Sliepen 2004-12-01 21:26:51 +00:00
  • 40b1692940 subnet-up/down hooks, use list_t for the todo list. Guus Sliepen 2004-12-01 20:06:39 +00:00
  • c46f56a8b8 subnet-up/down hooks Guus Sliepen 2004-12-01 20:06:05 +00:00
  • f08baa3072 Fix splay tree code. Guus Sliepen 2004-11-18 20:34:48 +00:00
  • 0077cfaae1 Make sure broadcast packet reach the local network interface. Guus Sliepen 2004-11-16 19:02:54 +00:00
  • 79c48cfafd Releasing 1.0.3. Guus Sliepen 2004-11-11 19:42:25 +00:00
  • 2771691bfc Add more people who have contributed to tinc. Remove details and sort on name; the details were not always equally accurate and are hard to maintain. Guus Sliepen 2004-11-11 19:39:28 +00:00
  • 4f3f6f07b2 Short readme about how to compile tinc from a Subversion checkout. Guus Sliepen 2004-11-11 11:17:04 +00:00
  • 704c3707c2 Updated dutch translation. Guus Sliepen 2004-11-10 23:28:32 +00:00
  • a20eb05714 Remove duplication. Guus Sliepen 2004-11-10 23:21:41 +00:00
  • d8fe2ecdd8 Set BSD tuns to broadcast mode. On OpenBSD, this enables IPv6 on the tun device! Guus Sliepen 2004-11-10 23:20:59 +00:00
  • 2369b0ab09 Update documentation. Guus Sliepen 2004-11-10 21:57:04 +00:00
  • 4fe7aff4d1 Add BlockingTCP option, useful when using TCPOnly on slow or congested links. Guus Sliepen 2004-11-10 21:56:31 +00:00
  • 5bba3124c8 Support tunneling IPv6 on Solaris. Guus Sliepen 2004-11-10 21:14:08 +00:00