X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Froute.c;h=e0e5db0d735119150dbcce9d5a7a808c12f4f0de;hp=d748db163d1999db9a7b938eb93c821d010004a4;hb=c217d214f4f071c235bc7c463a1da6124e2570a6;hpb=9915f2abbedb7f1aa2b9e2f81d52ddcfca60e82d diff --git a/src/route.c b/src/route.c index d748db16..e0e5db0d 100644 --- a/src/route.c +++ b/src/route.c @@ -16,8 +16,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - $Id$ */ #include "system.h" @@ -769,13 +767,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);