patch-2.1.91 linux/net/ipv4/timer.c

Next file: linux/net/ipv4/udp.c
Previous file: linux/net/ipv4/tcp_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.90/linux/net/ipv4/timer.c linux/net/ipv4/timer.c
@@ -5,7 +5,7 @@
  *
  *		TIMER - implementation of software timers for IP.
  *
- * Version:	$Id: timer.c,v 1.10 1998/03/13 08:02:18 davem Exp $
+ * Version:	$Id: timer.c,v 1.11 1998/03/19 08:34:06 davem Exp $
  *
  * Authors:	Ross Biro, <bir7@leland.Stanford.Edu>
  *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -59,10 +59,8 @@
 
 void net_reset_timer (struct sock *t, int timeout, unsigned long len)
 {
-	net_delete_timer (t);
 	t->timeout = timeout;
-	t->timer.expires = jiffies+len;
-	add_timer (&t->timer);
+	mod_timer(&t->timer, jiffies+len);
 }
 
 /* Now we will only be called whenever we need to do

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov