projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Raise default RSA key length to 2048 bits.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
9f61275
..
2be599e
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-71,7
+71,7
@@
void send_mtu_probe(node_t *n)
n->mtuevent = NULL;
if(!n->status.reachable) {
n->mtuevent = NULL;
if(!n->status.reachable) {
-
ifdebug(TRAFFIC) logger(LOG_INFO
, _("Trying to send MTU probe to unreachable node %s (%s)"), n->name, n->hostname);
+
logger(LOG_DEBUG
, _("Trying to send MTU probe to unreachable node %s (%s)"), n->name, n->hostname);
return;
}
return;
}
@@
-87,7
+87,7
@@
void send_mtu_probe(node_t *n)
return;
}
return;
}
- len = n->minmtu + 1 + rand
om
() % (n->maxmtu - n->minmtu);
+ len = n->minmtu + 1 + rand() % (n->maxmtu - n->minmtu);
if(len < 64)
len = 64;
if(len < 64)
len = 64;
@@
-552,7
+552,8
@@
void handle_incoming_vpn_data(int sock)
pkt.len = recvfrom(sock, (char *) &pkt.seqno, MAXSIZE, 0, &from.sa, &fromlen);
if(pkt.len < 0) {
pkt.len = recvfrom(sock, (char *) &pkt.seqno, MAXSIZE, 0, &from.sa, &fromlen);
if(pkt.len < 0) {
- logger(LOG_ERR, _("Receiving packet failed: %s"), strerror(errno));
+ if(errno != EAGAIN && errno != EINTR)
+ logger(LOG_ERR, _("Receiving packet failed: %s"), strerror(errno));
return;
}
return;
}