patch-2.3.39 linux/net/ipv4/ipconfig.c
Next file: linux/net/ipv4/ipmr.c
Previous file: linux/net/ipv4/ip_sockglue.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sat Jan 8 21:36:20 2000
- Orig file:
v2.3.38/linux/net/ipv4/ipconfig.c
- Orig date:
Thu Aug 26 13:05:45 1999
diff -u --recursive --new-file v2.3.38/linux/net/ipv4/ipconfig.c linux/net/ipv4/ipconfig.c
@@ -1,5 +1,5 @@
/*
- * $Id: ipconfig.c,v 1.24 1999/08/20 00:35:14 davem Exp $
+ * $Id: ipconfig.c,v 1.25 2000/01/09 02:19:31 davem Exp $
*
* Automatic Configuration of IP -- use BOOTP or RARP or user-supplied
* information to configure own IP address and routes.
@@ -116,7 +116,7 @@
unsigned short oflags;
last = &ic_first_dev;
- read_lock(&dev_base_lock);
+ rtnl_shlock();
for (dev = dev_base; dev; dev = dev->next) {
if (user_dev_name[0] ? !strcmp(dev->name, user_dev_name) :
(!(dev->flags & IFF_LOOPBACK) &&
@@ -148,7 +148,7 @@
DBG(("IP-Config: Opened %s (able=%d)\n", dev->name, able));
}
}
- read_unlock(&dev_base_lock);
+ rtnl_shunlock();
*last = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)