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

Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.13/linux/net/ipv4/timer.c linux/net/ipv4/timer.c
@@ -72,7 +72,7 @@
 	if ((int) len < 0)	/* prevent close to infinite timers. THEY _DO_ */
 		len = 3;	/* happen (negative values ?) - don't ask me why ! -FB */
 #endif
-	t->timer.expires = len;
+	t->timer.expires = jiffies+len;
 	add_timer (&t->timer);
 }
 
@@ -95,7 +95,7 @@
 	cli();
 	if (sk->inuse || in_bh) 
 	{
-		sk->timer.expires = 10;
+		sk->timer.expires = jiffies+10;
 		add_timer(&sk->timer);
 		sti();
 		return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this