]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Change return value of tcp_rcv_established()
authorVijay Subramanian <subramanian.vijay@gmail.com>
Tue, 3 Sep 2013 19:23:22 +0000 (12:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 04:27:28 +0000 (00:27 -0400)
commite98ad0e70efa3f6360919bdee45a48bd9bcaf8c4
treedbe9be79766ab1c2a4f9da7ae461bd6ceab6bc9f
parent41d2edee97a5810e87689a0f3a5b319278d9ada9
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 4ae8b49f (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 <subramanian.vijay@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_probe.c
net/ipv6/tcp_ipv6.c