patch-2.1.93 linux/net/ipv6/tcp_ipv6.c
Next file: linux/Documentation/Configure.help
Previous file: linux/net/ipv4/tcp_timer.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Fri Apr 3 17:48:11 1998
- Orig file:
v2.1.92/linux/net/ipv6/tcp_ipv6.c
- Orig date:
Wed Apr 1 20:11:55 1998
diff -u --recursive --new-file v2.1.92/linux/net/ipv6/tcp_ipv6.c linux/net/ipv6/tcp_ipv6.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: tcp_ipv6.c,v 1.72 1998/03/30 08:41:52 davem Exp $
+ * $Id: tcp_ipv6.c,v 1.74 1998/04/03 09:50:01 freitag Exp $
*
* Based on:
* linux/net/ipv4/tcp.c
@@ -42,9 +42,6 @@
#include <asm/uaccess.h>
-extern int sysctl_tcp_timestamps;
-extern int sysctl_tcp_window_scaling;
-
static void tcp_v6_send_reset(struct sk_buff *skb);
static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len,
struct sk_buff *skb);
@@ -748,12 +745,12 @@
if (sk->ack_backlog >= sk->max_ack_backlog) {
printk(KERN_DEBUG "droping syn ack:%d max:%d\n",
sk->ack_backlog, sk->max_ack_backlog);
- tcp_statistics.TcpAttemptFails++;
- goto exit;
+ goto drop;
}
req = tcp_openreq_alloc();
if (req == NULL) {
+ goto drop;
}
sk->ack_backlog++;
@@ -796,8 +793,11 @@
sk->data_ready(sk, 0);
-exit:
return 0;
+
+drop:
+ tcp_statistics.TcpAttemptFails++;
+ return 0; /* don't send reset */
}
static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov