X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_packet.c;h=054a66feb2f5a4a12420227b329364aa08655f14;hp=3466f87ee975a3aaf5a6d249542577b671038887;hb=242c4e2ca67d0b5c78dfe6e68a5ddcd27be1de99;hpb=d922db253cd098bc038449e5c591cc94c1019952 diff --git a/src/net_packet.c b/src/net_packet.c index 3466f87e..054a66fe 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -369,10 +369,13 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) { if(n->options & OPTION_PMTU_DISCOVERY && inpkt->len > n->minmtu && (inpkt->data[12] | inpkt->data[13])) { ifdebug(TRAFFIC) logger(LOG_INFO, - "Packet for %s (%s) larger than minimum MTU, forwarding via TCP", - n->name, n->hostname); + "Packet for %s (%s) larger than minimum MTU, forwarding via %s", + n->name, n->hostname, n != n->nexthop ? n->nexthop->name : "TCP"); - send_tcppacket(n->nexthop->connection, origpkt); + if(n != n->nexthop) + send_packet(n->nexthop, origpkt); + else + send_tcppacket(n->nexthop->connection, origpkt); return; }