projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sr.ht CI: update FreeBSD and OpenBSD image versions
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
d171fec
..
0b95a93
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-53,6
+53,7
@@
#include "protocol.h"
#include "route.h"
#include "utils.h"
#include "protocol.h"
#include "route.h"
#include "utils.h"
+#include "random.h"
/* The minimum size of a probe is 14 bytes, but since we normally use CBC mode
encryption, we can add a few extra random bytes without increasing the
/* The minimum size of a probe is 14 bytes, but since we normally use CBC mode
encryption, we can add a few extra random bytes without increasing the
@@
-199,7
+200,10
@@
static void udp_probe_h(node_t *n, vpn_packet_t *packet, length_t len) {
n->address_cache = open_address_cache(n);
}
n->address_cache = open_address_cache(n);
}
- reset_address_cache(n->address_cache, &n->address);
+ if(n->connection && n->connection->edge) {
+ reset_address_cache(n->address_cache);
+ add_recent_address(n->address_cache, &n->connection->edge->address);
+ }
}
// Reset the UDP ping timer.
}
// Reset the UDP ping timer.
@@
-1642,6
+1646,7
@@
void broadcast_packet(const node_t *from, vpn_packet_t *packet) {
break;
break;
+ case BMODE_NONE:
default:
break;
}
default:
break;
}