patch-2.1.11 linux/net/ax25/ax25_timer.c

Next file: linux/net/ax25/sysctl_net_ax25.c
Previous file: linux/net/ax25/ax25_in.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.10/linux/net/ax25/ax25_timer.c linux/net/ax25/ax25_timer.c
@@ -152,6 +152,7 @@
 					printk(KERN_DEBUG "AX.25 T3 Timeout\n");
 				ax25->sk->state = TCP_CLOSE;
 				ax25->sk->err   = ETIMEDOUT;
+				ax25->sk->shutdown |= SEND_SHUTDOWN;
 				if (!ax25->sk->dead)
 					ax25->sk->state_change(ax25->sk);
 				ax25->sk->dead  = 1;
@@ -196,6 +197,7 @@
 		if (ax25->sk != NULL) {
 			ax25->sk->state = TCP_CLOSE;
 			ax25->sk->err = 0;
+			ax25->sk->shutdown |= SEND_SHUTDOWN;
 			if (!ax25->sk->dead)
 				ax25->sk->state_change(ax25->sk);
 			ax25->sk->dead = 1;
@@ -239,6 +241,7 @@
 					if (ax25->sk != NULL) {
 						ax25->sk->state = TCP_CLOSE;
 						ax25->sk->err   = ETIMEDOUT;
+						ax25->sk->shutdown |= SEND_SHUTDOWN;
 						if (!ax25->sk->dead)
 							ax25->sk->state_change(ax25->sk);
 						ax25->sk->dead  = 1;
@@ -269,6 +272,7 @@
 				if (ax25->sk != NULL) {
 					ax25->sk->state = TCP_CLOSE;
 					ax25->sk->err   = ETIMEDOUT;
+					ax25->sk->shutdown |= SEND_SHUTDOWN;
 					if (!ax25->sk->dead)
 						ax25->sk->state_change(ax25->sk);
 					ax25->sk->dead  = 1;
@@ -298,6 +302,7 @@
 						printk(KERN_DEBUG "AX.25 link Failure\n");
 					ax25->sk->state = TCP_CLOSE;
 					ax25->sk->err   = ETIMEDOUT;
+					ax25->sk->shutdown |= SEND_SHUTDOWN;
 					if (!ax25->sk->dead)
 						ax25->sk->state_change(ax25->sk);
 					ax25->sk->dead  = 1;

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