Keep track of the largest UDP packet size received from a node.
[tinc] / src / node.c
index 6623f46..fb4b7eb 100644 (file)
@@ -179,6 +179,7 @@ void update_node_udp(node_t *n, const sockaddr_t *sa) {
        /* invalidate UDP information - note that this is a security feature as well to make sure
           we can't be tricked into flooding any random address with UDP packets */
        n->status.udp_confirmed = false;
+       n->maxrecentlen = 0;
        n->mtuprobes = 0;
        n->minmtu = 0;
        n->maxmtu = MTU;