Displaying 5 results from an estimated 5 matches for "sockaddr2hostname".
2015 May 16
1
tinc 1.1 "Got ADD_EDGE ... which does not match existing entry"
On Sat, 16 May 2015, Guus Sliepen wrote:
> On Sat, May 16, 2015 at 12:09:52AM +0200, Sven-Haegar Koch wrote:
> 
> > This change is not so good:
> > 
> > Connection with aaa_vpnhub1 (1.2.3.4 port 443) activated
> > Error while translating addresses: ai_family not supported
> > 
> > (And then the tinc process exists)
> 
> Hm, I couldn't reproduce
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
...om;
+				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 unknown source %s", hostname);
-			free(hostname);
+	skip_harder:
+		if(!n) {
+			if(debug_level >= DEBUG_PROTOCOL) {
+				hostname = sockaddr2hostname(&addr[i]);
+				logger(DEBUG_PROTOCOL, LOG_WARNING,...
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...plementations do stupid things. */
 
-	n = lookup_node_udp(&from);
+	n = lookup_node_udp(from);
 
 	if(!n) {
-		n = try_harder(&from, &pkt);
+		n = try_harder(from, pkt);
 		if(n)
-			update_node_udp(n, &from);
+			update_node_udp(n, from);
 		else ifdebug(PROTOCOL) {
-			hostname = sockaddr2hostname(&from);
+			hostname = sockaddr2hostname(from);
 			logger(LOG_WARNING, "Received UDP packet from unknown source %s", hostname);
 			free(hostname);
 			return;
@@ -730,5 +725,55 @@ void handle_incoming_vpn_data(int sock) {
 
 	n->sock = sock;
 
-	receive_udppacket(n, &pkt);
+...
2015 Dec 02
0
[PATCH] Receive multiple packets at a time
...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 unknown source %s", hostname);
> -                       free(hostname);
> +       skip_harder:
> +               if(!n) {
> +                       if(debug_level >= DEBU...
2007 Jul 21
2
tincctl patches
(Second try to send this. I wonder if the first one gotten eaten by a
spam filter; I'll link to patches instead of attaching them.)
Here are the tincctl patches I've been working on. They apply to
http://www.tinc-vpn.org/svn/tinc/branches/1.1@1545. I intend to commit
them once the crypto stuff's fixed. Since they're basically done, I'm
emailing them now for review and in case