patch-1.3.14 linux/net/netrom/nr_timer.c

Next file: linux/Makefile
Previous file: linux/net/netrom/nr_subr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.13/linux/net/netrom/nr_timer.c linux/net/netrom/nr_timer.c
@@ -58,7 +58,7 @@
 	sk->timer.data     = (unsigned long)sk;
 	sk->timer.function = &nr_timer;
 
-	sk->timer.expires = 10;
+	sk->timer.expires = jiffies+10;
 	add_timer(&sk->timer);
 }
 
@@ -73,7 +73,7 @@
 
 	sk->timer.data     = (unsigned long)sk;
 	sk->timer.function = &nr_timer;
-	sk->timer.expires  = 10;
+	sk->timer.expires  = jiffies+10;
 	add_timer(&sk->timer);
 }
 
@@ -140,7 +140,7 @@
 	switch (sk->nr->state) {
 		case NR_STATE_1: 
 			if (sk->nr->n2count == sk->nr->n2) {
-				nr_clear_tx_queue(sk);
+				nr_clear_queues(sk);
 				sk->nr->state = NR_STATE_0;
 				sk->state     = TCP_CLOSE;
 				sk->err       = ETIMEDOUT;
@@ -155,7 +155,7 @@
 
 		case NR_STATE_2:
 			if (sk->nr->n2count == sk->nr->n2) {
-				nr_clear_tx_queue(sk);
+				nr_clear_queues(sk);
 				sk->nr->state = NR_STATE_0;
 				sk->state     = TCP_CLOSE;
 				sk->err       = ETIMEDOUT;
@@ -170,7 +170,7 @@
 
 		case NR_STATE_3:
 			if (sk->nr->n2count == sk->nr->n2) {
-				nr_clear_tx_queue(sk);
+				nr_clear_queues(sk);
 				sk->nr->state = NR_STATE_0;
 				sk->state     = TCP_CLOSE;
 				sk->err       = ETIMEDOUT;


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