patch-2.3.49 linux/drivers/net/Space.c
Next file: linux/drivers/net/aironet4500.h
Previous file: linux/drivers/net/Makefile
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Sun Feb 27 18:45:10 2000
- Orig file:
v2.3.48/linux/drivers/net/Space.c
- Orig date:
Sat Feb 26 22:31:46 2000
diff -u --recursive --new-file v2.3.48/linux/drivers/net/Space.c linux/drivers/net/Space.c
@@ -685,6 +685,15 @@
-struct net_device *dev_base = NEXT_DEV;
+/*
+ * The loopback device is global so it can be directly referenced
+ * by the network code. Also, it must be first on device list.
+ */
+
+extern int loopback_init(struct net_device *dev);
+struct net_device loopback_dev =
+ {"lo", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, loopback_init};
+
+struct net_device *dev_base = &loopback_dev;
rwlock_t dev_base_lock = RW_LOCK_UNLOCKED;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)