mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
tcp: Change return value of tcp_rcv_established()
tcp_rcv_established() returns only one value namely 0. We change the return
value to void (as suggested by David Miller).
After commit 0c24604b (tcp: implement RFC 5961 4.2), we no longer send RSTs in
response to SYNs. We can remove the check and processing on the return value of
tcp_rcv_established().
We also fix jtcp_rcv_established() in tcp_probe.c to match that of
tcp_rcv_established().
Signed-off-by: Vijay Subramanian <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cc8c6c1b21
commit
c995ae2259
5 changed files with 12 additions and 18 deletions
|
|
@ -1360,8 +1360,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
|
|||
}
|
||||
}
|
||||
|
||||
if (tcp_rcv_established(sk, skb, tcp_hdr(skb), skb->len))
|
||||
goto reset;
|
||||
tcp_rcv_established(sk, skb, tcp_hdr(skb), skb->len);
|
||||
if (opt_skb)
|
||||
goto ipv6_pktoptions;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue