Displaying 7 results from an estimated 7 matches for "try_hard".
Did you mean:
  tryhard
  
2013 Jul 15
1
Packet loss with LocalDiscovery
Hi,
I believe I have found a bug with regard to the LocalDiscovery feature. 
This is on tinc-1.1pre7 between two Windows nodes.
Steps to reproduce:
- Get two nodes talking using LocalDiscovery (e.g. put them on the same 
LAN behind a NAT with no metaconnection to each other)
- Make one ping the other.
Expected result:
- The two nodes should ping each other without any packet loss, 
hopefully at
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
...mcmp(DSTID(&pkt[i]), &nullid, sizeof nullid) && from->status.sptps) {
+				if(sptps_verify_datagram(&from->sptps, DATA(&pkt[i]), pkt[i].len - 2 * sizeof(node_id_t)))
+					n = from;
+				else
+					goto skip_harder;
+			}
 		}
-	}
 
-	if(!n) {
-		pkt.offset = 0;
-		n = try_harder(&addr, &pkt);
-	}
+		if(!n) {
+			pkt[i].offset = 0;
+			n = try_harder(&addr[i], &pkt[i]);
+		}
 
-skip_harder:
-	if(!n) {
-		if(debug_level >= DEBUG_PROTOCOL) {
-			hostname = sockaddr2hostname(&addr);
-			logger(DEBUG_PROTOCOL, LOG_WARNING, "Received UDP packet from...
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...ecvmmsg select strdup strerror strsignal strtol system unsetenv usleep vsyslog writev],
   [], [], [#include "src/have.h"]
 )
 
diff --git a/src/net_packet.c b/src/net_packet.c
index e67857c..174db34 100644
--- a/src/net_packet.c
+++ b/src/net_packet.c
@@ -695,31 +695,26 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
 	return n;
 }
 
-void handle_incoming_vpn_data(int sock) {
-	vpn_packet_t pkt;
+#ifdef HAVE_RECVMMSG
+#define MAX_MSG  256
+#else
+#define MAX_MSG  1
+#endif
+
+static void handle_incoming_vpn_packet(int sock, vpn_packet_t *pkt, sockaddr_t *from...
2015 Dec 02
0
[PATCH] Receive multiple packets at a time
...n = from;
> +                               else
> +                                       goto skip_harder;
> +                       }
>                 }
> -       }
>
> -       if(!n) {
> -               pkt.offset = 0;
> -               n = try_harder(&addr, &pkt);
> -       }
> +               if(!n) {
> +                       pkt[i].offset = 0;
> +                       n = try_harder(&addr[i], &pkt[i]);
> +               }
>
> -skip_harder:
> -       if(!n) {
> -               if(debug_level >=...
2011 Jan 03
1
Tinc improvements
...PTION_TCPONLY)
@@ -475,6 +481,10 @@
 		inpkt->len += n->outmaclength;
 	}
 
+	/* Add flags (not encrypted) */
+
+	inpkt->len += sizeof(inpkt->flags);
+
 	/* Determine which socket we have to use */
 
 	for(sock = 0; sock < listen_sockets; sock++)
@@ -574,29 +584,28 @@
 static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
 	avl_node_t *node;
 	edge_t *e;
-	node_t *n = NULL;
 	static time_t last_hard_try = 0;
 
-	for(node = edge_weight_tree->head; node; node = node->next) {
+	for (node = edge_weight_tree->head; node; node = node->next) {
 		e = node->...
2014 Jul 16
2
Some questions about SPTPS
I've been using SPTPS (a.k.a ExperimentalProtocol) for a while now, but 
I've only recently started looking into the details of the protocol 
itself. I have some questions about the design:
- I am not sure what the thread model for SPTPS is when compared with 
the legacy protocol. SPTPS is vastly more complex than the legacy 
protocol (it adds a whole new handshake mechanism), and
2010 Nov 22
7
local address announcements
Hi everyone,
you can find the current version of my enhanced tinc using subversion:
svn://tardyon.mon-clan.de/tinc
I allowed anonymous read access, so feel free to download the sources.
Unfortunately, my enhancements are based on a rather old git-checkout from
Guus.
The version should run under windows and Debian/Ubuntu.
Best,
Daniel
-----Original Message-----
From: folkert [mailto:folkert