]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: cleanup tcp_v[46]_inbound_md5_hash()
authorEric Dumazet <edumazet@google.com>
Fri, 2 Oct 2015 18:43:28 +0000 (11:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2015 11:32:38 +0000 (04:32 -0700)
commitfb8170fbdb8acee4b77fd2929d342a7864bdd2cb
treeb23c8ea809c70a80e3f1fa0ef9935e8600d739ff
parent383112a7ce19ea262e9819e64b827902056e6ffb
tcp: cleanup tcp_v[46]_inbound_md5_hash()

We'll soon have to call tcp_v[46]_inbound_md5_hash() twice.
Also add const attribute to the socket, as it might be the
unlocked listener for SYN packets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c