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 
								
							 
						 
						
							
							
							
							
								
							
							
								a1e72f84d0 
								
							 
						 
						
							
							
								
								Update copyright notices.  
							
							 
							
							
							
						 
						
							2007-01-05 13:18:36 +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 
								
							 
						 
						
							
							
							
							
								
							
							
								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 
								
							 
						 
						
							
							
							
							
								
							
							
								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  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								e5b1b5cefb 
								
							 
						 
						
							
							
								
								EWOULDBLOCK does not exist on platforms without O_NONBLOCK  
							
							 
							
							
							
						 
						
							2006-11-14 12:28:04 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								0714ac6c59 
								
							 
						 
						
							
							
								
								Nodes use events, so event system should be initialised first and destroyed last.  
							
							 
							
							
							
						 
						
							2006-11-11 22:44:15 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								8d393b30a9 
								
							 
						 
						
							
							
								
								Support and autodetect LZO version 2.0 and later.  
							
							 
							
							
							
						 
						
							2006-11-11 20:10:46 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								0d1ac68c59 
								
							 
						 
						
							
							
								
								popen() requires pclose().  
							
							 
							
							
							
						 
						
							2006-11-11 14:37:03 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								0200d3cd5d 
								
							 
						 
						
							
							
								
								Added graph dumping ability based on Markus Goetz's patch.  
							
							 
							
							
							
						 
						
							2006-11-11 14:11:16 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								1728d5b2c4 
								
							 
						 
						
							
							
								
								The "active" bit in node.status is not used.  
							
							 
							
							
							
						 
						
							2006-11-11 13:43:00 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								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. 
							
						 
						
							2006-08-09 22:31:10 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								64e0519cb5 
								
							 
						 
						
							
							
								
								Remove unused variable.  
							
							 
							
							
							
						 
						
							2006-08-08 13:50:58 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								ddcf079cad 
								
							 
						 
						
							
							
								
								Remove unused parameter from maskcmp().  
							
							 
							
							
							
						 
						
							2006-08-08 13:44:37 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								c620df3c15 
								
							 
						 
						
							
							
								
								Remove unused variables.  
							
							 
							
							
							
						 
						
							2006-08-08 13:44:19 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								9fa27097dd 
								
							 
						 
						
							
							
								
								Fix format string warnings.  
							
							 
							
							
							
						 
						
							2006-08-08 13:29:17 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								eb391c52ee 
								
							 
						 
						
							
							
								
								Do not break strict aliasing of status_t structs.  
							
							 
							
							
							
						 
						
							2006-08-08 13:21:08 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								2077451e07 
								
							 
						 
						
							
							
								
								Add generic host-up and host-down scripts.  
							
							 
							
							... 
							
							
							
							Thanks to Menno Smits for a patch. 
							
						 
						
							2006-06-12 21:45:39 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								f88c9942e1 
								
							 
						 
						
							
							
								
								Use memcpy() to copy sockaddrs returned by getaddrinfo().  
							
							 
							
							... 
							
							
							
							Thanks to Miles Nordin for spotting this. 
							
						 
						
							2006-06-11 18:53:27 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								412f3fb510 
								
							 
						 
						
							
							
								
								Restore length of the original packet in send_udppacket().  
							
							 
							
							
							
						 
						
							2006-04-26 16:29:47 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								de78d79db8 
								
							 
						 
						
							
							
								
								Update copyright notices, remove Ivo's email address.  
							
							 
							
							
							
						 
						
							2006-04-26 13:52:58 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								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. 
							
						 
						
							2006-04-12 08:38:35 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								af95368c0f 
								
							 
						 
						
							
							
								
								Fix signedness compiler warnings.  
							
							 
							
							
							
						 
						
							2006-03-19 13:06:21 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								fb1cda2ca4 
								
							 
						 
						
							
							
								
								Export flush_meta().  
							
							 
							
							
							
						 
						
							2006-03-19 12:43:45 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								098090468a 
								
							 
						 
						
							
							
								
								Missing #include.  
							
							 
							
							
							
						 
						
							2006-03-19 12:43:28 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								a90f1b652c 
								
							 
						 
						
							
							
								
								Make sure $NAME is set correctly when executing tinc-down script.  
							
							 
							
							
							
						 
						
							2006-02-06 12:30:51 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								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. 
							
						 
						
							2006-01-19 17:13:18 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								a5a4d2b865 
								
							 
						 
						
							
							
								
								Apply patch from Scott Lamb unifying configuration of TCP socket options.  
							
							 
							
							
							
						 
						
							2006-01-13 11:21:59 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								e02f13cdb3 
								
							 
						 
						
							
							
								
								EVP_Cleanup() when quitting.  
							
							 
							
							
							
						 
						
							2006-01-13 11:09:19 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								0912260755 
								
							 
						 
						
							
							
								
								Enable OpenSSL ENGINE, so crypto hardware gets used. Thanks to Andreas van Cranenburgh.  
							
							 
							
							
							
						 
						
							2005-11-16 10:45:11 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								e810545dc2 
								
							 
						 
						
							
							
								
								Prevent possible buffer overflows when using very large (>= 8192 bit) RSA keys.  
							
							 
							
							... 
							
							
							
							Thanks to Tonnerre Lombard for noticing! 
							
						 
						
							2005-06-03 10:16:03 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								df3220a154 
								
							 
						 
						
							
							
								
								Update copyright notices.  
							
							 
							
							
							
						 
						
							2005-05-04 18:09:30 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								faaaa1ef38 
								
							 
						 
						
							
							
								
								Searching through splay trees may change the tree variable.  
							
							 
							
							
							
						 
						
							2005-05-04 15:52:55 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								dc09f6fe89 
								
							 
						 
						
							
							
								
								Be on the safe side with initialisation of c->name.  
							
							 
							
							
							
						 
						
							2005-05-04 15:51:45 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								92c4a28d7d 
								
							 
						 
						
							
							
								
								Remove unused (and potentially segfaulting) net2str() call.  
							
							 
							
							
							
						 
						
							2005-04-06 20:43:37 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								6363ed4d9c 
								
							 
						 
						
							
							
								
								Don't try to add a non-existing node back to the node_udp_tree.  
							
							 
							
							
							
						 
						
							2005-01-20 15:14:25 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								39fe3b445c 
								
							 
						 
						
							
							
								
								Nodes should only be in the node_udp_tree if they are reachable.  
							
							 
							
							
							
						 
						
							2005-01-04 22:19:56 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								fe0bfa3e65 
								
							 
						 
						
							
							
								
								Correct size argument for strncat().  
							
							 
							
							
							
						 
						
							2005-01-04 22:18:58 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								56c36a14d8 
								
							 
						 
						
							
							
								
								Use the proper free function.  
							
							 
							
							
							
						 
						
							2004-12-03 13:27:33 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								18c617ecf2 
								
							 
						 
						
							
							
								
								Free memory used by connection_t after it is deleted from the connection tree.  
							
							 
							
							
							
						 
						
							2004-12-03 13:22:18 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								672ad5634c 
								
							 
						 
						
							
							
								
								Small fix.  
							
							 
							
							
							
						 
						
							2004-12-01 21:26:51 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Guus Sliepen 
								
							 
						 
						
							
							
							
							
								
							
							
								40b1692940 
								
							 
						 
						
							
							
								
								subnet-up/down hooks, use list_t for the todo list.  
							
							 
							
							
							
						 
						
							2004-12-01 20:06:39 +00:00