]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Send large packets we cannot handle properly via TCP.
[meshlink] / src / route.c
index d748db163d1999db9a7b938eb93c821d010004a4..9b689039c17250f2a57b2c9c44a37132783f478c 100644 (file)
@@ -769,13 +769,12 @@ static void route_mac(node_t *source, vpn_packet_t *packet)
                        } else {
                                fragment_ipv4_packet(via, packet);
                        }
+                       return;
                } else if(type == ETH_P_IPV6) {
                        packet->len = via->mtu;
                        route_ipv6_unreachable(source, packet, ICMP6_PACKET_TOO_BIG, 0);
-               } else
-                       ifdebug(TRAFFIC) logger(LOG_INFO, _("Large packet of unhandled type %hx dropped"), type);
-
-               return;
+                       return;
+               }
        }
 
        send_packet(subnet->owner, packet);