[commits] r1775 - trunk/batman-adv

postmaster at open-mesh.org postmaster at open-mesh.org
Fri Aug 20 21:17:32 CEST 2010


Author: marek
Date: 2010-08-20 21:16:14 +0200 (Fri, 20 Aug 2010)
New Revision: 1775

Modified:
   trunk/batman-adv/hard-interface.c
Log:
batman-adv: Update mtu of bat device by changing mtu of slave device

We must reduce our own mtu when we reduce the mtu of any device we use
to transfer our packets. Otherwise we may accept to large packets which
gets dropped by the actual device.

Reported-by: Vasiliy Kulikov <segooon at gmail.com>
Signed-off-by: Sven Eckelmann <sven.eckelmann at gmx.de>

Modified: trunk/batman-adv/hard-interface.c
===================================================================
--- trunk/batman-adv/hard-interface.c	2010-08-20 19:16:11 UTC (rev 1774)
+++ trunk/batman-adv/hard-interface.c	2010-08-20 19:16:14 UTC (rev 1775)
@@ -469,6 +469,10 @@
 	case NETDEV_UNREGISTER:
 		hardif_remove_interface(batman_if);
 		break;
+	case NETDEV_CHANGEMTU:
+		if (batman_if->soft_iface)
+			update_min_mtu(batman_if->soft_iface);
+		break;
 	case NETDEV_CHANGEADDR:
 		if (batman_if->if_status == IF_NOT_IN_USE)
 			goto out;



More information about the commits mailing list