diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index ad993ecb4810..edef2afe905e 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -5,8 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Implementation of the Transmission Control Protocol(TCP). | 6 | * Implementation of the Transmission Control Protocol(TCP). |
7 | * | 7 | * |
8 | * Version: $Id: tcp_output.c,v 1.146 2002/02/01 22:01:04 davem Exp $ | ||
9 | * | ||
10 | * Authors: Ross Biro | 8 | * Authors: Ross Biro |
11 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> | 9 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> |
12 | * Mark Evans, <evansmp@uhura.aston.ac.uk> | 10 | * Mark Evans, <evansmp@uhura.aston.ac.uk> |
@@ -607,7 +605,6 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, | |||
607 | md5, | 605 | md5, |
608 | sk, NULL, NULL, | 606 | sk, NULL, NULL, |
609 | tcp_hdr(skb), | 607 | tcp_hdr(skb), |
610 | sk->sk_protocol, | ||
611 | skb->len); | 608 | skb->len); |
612 | } | 609 | } |
613 | #endif | 610 | #endif |
@@ -1988,14 +1985,17 @@ void tcp_xmit_retransmit_queue(struct sock *sk) | |||
1988 | 1985 | ||
1989 | if (sacked & TCPCB_LOST) { | 1986 | if (sacked & TCPCB_LOST) { |
1990 | if (!(sacked & (TCPCB_SACKED_ACKED|TCPCB_SACKED_RETRANS))) { | 1987 | if (!(sacked & (TCPCB_SACKED_ACKED|TCPCB_SACKED_RETRANS))) { |
1988 | int mib_idx; | ||
1989 | |||
1991 | if (tcp_retransmit_skb(sk, skb)) { | 1990 | if (tcp_retransmit_skb(sk, skb)) { |
1992 | tp->retransmit_skb_hint = NULL; | 1991 | tp->retransmit_skb_hint = NULL; |
1993 | return; | 1992 | return; |
1994 | } | 1993 | } |
1995 | if (icsk->icsk_ca_state != TCP_CA_Loss) | 1994 | if (icsk->icsk_ca_state != TCP_CA_Loss) |
1996 | NET_INC_STATS_BH(LINUX_MIB_TCPFASTRETRANS); | 1995 | mib_idx = LINUX_MIB_TCPFASTRETRANS; |
1997 | else | 1996 | else |
1998 | NET_INC_STATS_BH(LINUX_MIB_TCPSLOWSTARTRETRANS); | 1997 | mib_idx = LINUX_MIB_TCPSLOWSTARTRETRANS; |
1998 | NET_INC_STATS_BH(mib_idx); | ||
1999 | 1999 | ||
2000 | if (skb == tcp_write_queue_head(sk)) | 2000 | if (skb == tcp_write_queue_head(sk)) |
2001 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, | 2001 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, |
@@ -2266,7 +2266,7 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst, | |||
2266 | tp->af_specific->calc_md5_hash(md5_hash_location, | 2266 | tp->af_specific->calc_md5_hash(md5_hash_location, |
2267 | md5, | 2267 | md5, |
2268 | NULL, dst, req, | 2268 | NULL, dst, req, |
2269 | tcp_hdr(skb), sk->sk_protocol, | 2269 | tcp_hdr(skb), |
2270 | skb->len); | 2270 | skb->len); |
2271 | } | 2271 | } |
2272 | #endif | 2272 | #endif |