patch-2.4.27 linux-2.4.27/drivers/net/tun.c

Next file: linux-2.4.27/drivers/net/via-rhine.c
Previous file: linux-2.4.27/drivers/net/tulip/tulip_core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/net/tun.c linux-2.4.27/drivers/net/tun.c
@@ -138,8 +138,8 @@
 		dev->addr_len = 0;
 		dev->mtu = 1500;
 
-		/* Type PPP seems most suitable */
-		dev->type = ARPHRD_PPP; 
+		/* Zero header length */
+		dev->type = ARPHRD_NONE; 
 		dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
 		dev->tx_queue_len = 10;
 		break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)