patch-2.4.11-dontuse linux/net/ipv4/inetpeer.c
Next file: linux/net/ipv4/ip_gre.c
Previous file: linux/net/ipv4/devinet.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Mon Oct 1 09:19:56 2001
- Orig file:
v2.4.10/linux/net/ipv4/inetpeer.c
- Orig date:
Tue Jul 3 17:08:22 2001
diff -u --recursive --new-file v2.4.10/linux/net/ipv4/inetpeer.c linux/net/ipv4/inetpeer.c
@@ -3,7 +3,7 @@
*
* This source is covered by the GNU GPL, the same as all kernel sources.
*
- * Version: $Id: inetpeer.c,v 1.6 2001/06/21 20:30:14 davem Exp $
+ * Version: $Id: inetpeer.c,v 1.7 2001/09/20 21:22:50 davem Exp $
*
* Authors: Andrey V. Savochkin <saw@msu.ru>
*/
@@ -67,6 +67,7 @@
* ip_id_count: idlock
*/
+/* Exported for inet_getid inline function. */
spinlock_t inet_peer_idlock = SPIN_LOCK_UNLOCKED;
static kmem_cache_t *peer_cachep;
@@ -83,10 +84,13 @@
#define PEER_MAXDEPTH 40 /* sufficient for about 2^27 nodes */
static volatile int peer_total;
+/* Exported for sysctl_net_ipv4. */
int inet_peer_threshold = 65536 + 128; /* start to throw entries more
* aggressively at this stage */
int inet_peer_minttl = 120 * HZ; /* TTL under high load: 120 sec */
int inet_peer_maxttl = 10 * 60 * HZ; /* usual time to live: 10 min */
+
+/* Exported for inet_putpeer inline function. */
struct inet_peer *inet_peer_unused_head,
**inet_peer_unused_tailp = &inet_peer_unused_head;
spinlock_t inet_peer_unused_lock = SPIN_LOCK_UNLOCKED;
@@ -95,10 +99,12 @@
static void peer_check_expire(unsigned long dummy);
static struct timer_list peer_periodic_timer =
{ { NULL, NULL }, 0, 0, &peer_check_expire };
+
+/* Exported for sysctl_net_ipv4. */
int inet_peer_gc_mintime = 10 * HZ,
inet_peer_gc_maxtime = 120 * HZ;
-
+/* Called from ip_output.c:ip_init */
void __init inet_initpeers(void)
{
struct sysinfo si;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)