patch-2.2.11 linux/net/ipv4/ip_masq_portfw.c
Next file: linux/net/ipv4/ip_masq_user.c
Previous file: linux/net/ipv4/ip_masq_mod.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Aug 9 12:04:41 1999
- Orig file:
v2.2.10/linux/net/ipv4/ip_masq_portfw.c
- Orig date:
Mon Jan 4 15:31:35 1999
diff -u --recursive --new-file v2.2.10/linux/net/ipv4/ip_masq_portfw.c linux/net/ipv4/ip_masq_portfw.c
@@ -2,7 +2,7 @@
* IP_MASQ_PORTFW masquerading module
*
*
- * $Id: ip_masq_portfw.c,v 1.3 1998/12/08 05:42:12 davem Exp $
+ * $Id: ip_masq_portfw.c,v 1.3.2.1 1999/07/02 10:10:02 davem Exp $
*
* Author: Steven Clarke <steven.clarke@monmouth.demon.co.uk>
*
@@ -51,9 +51,7 @@
/*
* Lock
*/
-#ifdef __SMP__
-static spinlock_t portfw_lock = SPIN_LOCK_UNLOCKED;
-#endif
+static rwlock_t portfw_lock = RW_LOCK_UNLOCKED;
static struct list_head portfw_list[2];
static __inline__ int portfw_idx(int protocol)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)