patch-1.3.33 linux/drivers/net/loopback.c

Next file: linux/drivers/net/ne.c
Previous file: linux/drivers/net/lance.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.32/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -125,8 +125,11 @@
 int loopback_init(struct device *dev)
 {
 	int i;
-
-	dev->mtu		= 2000;			/* MTU			*/
+#ifdef CONFIG_SKB_LARGE
+	dev->mtu		= 7900;			/* MTU			*/
+#else
+	dev->mtu		= 3800;
+#endif	
 	dev->tbusy		= 0;
 	dev->hard_start_xmit	= loopback_xmit;
 	dev->open		= NULL;
@@ -140,7 +143,7 @@
 	dev->family		= AF_INET;
 #ifdef CONFIG_INET    
 	dev->pa_addr		= in_aton("127.0.0.1");
-	dev->pa_brdaddr	= in_aton("127.255.255.255");
+	dev->pa_brdaddr		= in_aton("127.255.255.255");
 	dev->pa_mask		= in_aton("255.0.0.0");
 	dev->pa_alen		= 4;
 #endif  

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this