From f57d53c3ad9af89489e15a8cfd94b56937bf3179 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 27 Sep 2014 17:51:33 +0100 Subject: [PATCH] Fix protocol version check for type 2 MTU probe replies. Currently tinc only uses type 2 MTU probe replies if the recipient uses protocol version 17.3. It should of course support any higher minor protocol version as well. --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index 4ec70fa6..b9f1957b 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -182,7 +182,7 @@ static void mtu_probe_h(node_t *n, vpn_packet_t *packet, length_t len) { /* It's a probe request, send back a reply */ /* Type 2 probe replies were introduced in protocol 17.3 */ - if ((n->options >> 24) == 3) { + if ((n->options >> 24) >= 3) { uint8_t* data = packet->data; *data++ = 2; uint16_t len16 = htons(len); memcpy(data, &len16, 2); data += 2; -- 2.20.1