patch-2.1.34 linux/net/ipv6/addrconf.c
Next file: linux/net/ipv6/datagram.c
Previous file: linux/net/ipv4/udp.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Apr 14 09:31:10 1997
- Orig file:
v2.1.33/linux/net/ipv6/addrconf.c
- Orig date:
Thu Mar 27 14:40:16 1997
diff -u --recursive --new-file v2.1.33/linux/net/ipv6/addrconf.c linux/net/ipv6/addrconf.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: addrconf.c,v 1.15 1997/03/18 18:24:23 davem Exp $
+ * $Id: addrconf.c,v 1.16 1997/04/12 04:32:44 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -20,6 +20,7 @@
* <chexum@bankinf.banki.hu>
*/
+#include <linux/config.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
@@ -68,7 +69,7 @@
*/
struct inet6_dev *inet6_dev_lst[IN6_ADDR_HSIZE];
-atomic_t addr_list_lock = 0;
+static atomic_t addr_list_lock = ATOMIC_INIT;
void addrconf_verify(unsigned long);
@@ -241,7 +242,7 @@
struct inet6_ifaddr *iter, **back;
int hash;
- if (addr_list_lock) {
+ if (atomic_read(&addr_list_lock)) {
ifp->flags |= ADDR_INVALID;
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov