patch-2.4.5 linux/net/ipv4/ipip.c
Next file: linux/net/ipv4/netfilter/ip_nat_core.c
Previous file: linux/net/ipv4/ipconfig.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu May 24 15:00:59 2001
- Orig file:
v2.4.4/linux/net/ipv4/ipip.c
- Orig date:
Wed Apr 25 14:57:39 2001
diff -u --recursive --new-file v2.4.4/linux/net/ipv4/ipip.c linux/net/ipv4/ipip.c
@@ -1,7 +1,7 @@
/*
* Linux NET3: IP/IP protocol decoder.
*
- * Version: $Id: ipip.c,v 1.45 2001/04/19 22:32:55 davem Exp $
+ * Version: $Id: ipip.c,v 1.46 2001/05/17 04:12:18 davem Exp $
*
* Authors:
* Sam Lantinga (slouken@cs.ucdavis.edu) 02/01/95
@@ -244,6 +244,7 @@
dev->init = ipip_tunnel_init;
dev->features |= NETIF_F_DYNALLOC;
memcpy(&nt->parms, parms, sizeof(*parms));
+ nt->parms.name[IFNAMSIZ-1] = '\0';
strcpy(dev->name, nt->parms.name);
if (dev->name[0] == 0) {
int i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)