Always reply to MTU probes via UDP.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 24 Oct 2009 19:32:06 +0000 (21:32 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 24 Oct 2009 19:32:06 +0000 (21:32 +0200)
It could sometime happen that a node would return MTU probes via TCP, which
does not make a lot of sense.

src/net_packet.c

index 7bf1249..626f8b1 100644 (file)
@@ -135,7 +135,7 @@ void mtu_probe_h(node_t *n, vpn_packet_t *packet, length_t len) {
 
        if(!packet->data[0]) {
                packet->data[0] = 1;
-               send_packet(n, packet);
+               send_udppacket(n, packet);
        } else {
                if(len > n->maxmtu)
                        len = n->maxmtu;