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)
commitba8e275a457397ab06f3567cf7bef0d78a43ae7e
treeb23c8ea809c70a80e3f1fa0ef9935e8600d739ff
parentb267cdd1075d28501b7c05c7aeb8466775505e8d
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