aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-24 18:58:56 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-24 21:16:30 -0400
commitfd3a154a00fb991872680f19021f5edbb40b4dbe (patch)
tree5d0b22e1e707f9ea3dcd0c3062eaaed59bc331e2 /include/net/tcp.h
parent39f8e58e53be32ab758d30536e0bd2e6ce766462 (diff)
tcp: md5: get rid of tcp_v[46]_reqsk_md5_lookup()
With request socks convergence, we no longer need different lookup methods. A request socket can use generic lookup function. Add const qualifier to 2nd tcp_v[46]_md5_lookup() parameter. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 992be858c370..42690daa924e 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1303,7 +1303,7 @@ int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
1303int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr, 1303int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr,
1304 int family); 1304 int family);
1305struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk, 1305struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk,
1306 struct sock *addr_sk); 1306 const struct sock *addr_sk);
1307 1307
1308#ifdef CONFIG_TCP_MD5SIG 1308#ifdef CONFIG_TCP_MD5SIG
1309struct tcp_md5sig_key *tcp_md5_do_lookup(struct sock *sk, 1309struct tcp_md5sig_key *tcp_md5_do_lookup(struct sock *sk,
@@ -1614,7 +1614,7 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops,
1614struct tcp_sock_af_ops { 1614struct tcp_sock_af_ops {
1615#ifdef CONFIG_TCP_MD5SIG 1615#ifdef CONFIG_TCP_MD5SIG
1616 struct tcp_md5sig_key *(*md5_lookup) (struct sock *sk, 1616 struct tcp_md5sig_key *(*md5_lookup) (struct sock *sk,
1617 struct sock *addr_sk); 1617 const struct sock *addr_sk);
1618 int (*calc_md5_hash)(char *location, 1618 int (*calc_md5_hash)(char *location,
1619 const struct tcp_md5sig_key *md5, 1619 const struct tcp_md5sig_key *md5,
1620 const struct sock *sk, 1620 const struct sock *sk,
@@ -1628,8 +1628,8 @@ struct tcp_sock_af_ops {
1628struct tcp_request_sock_ops { 1628struct tcp_request_sock_ops {
1629 u16 mss_clamp; 1629 u16 mss_clamp;
1630#ifdef CONFIG_TCP_MD5SIG 1630#ifdef CONFIG_TCP_MD5SIG
1631 struct tcp_md5sig_key *(*md5_lookup) (struct sock *sk, 1631 struct tcp_md5sig_key *(*req_md5_lookup)(struct sock *sk,
1632 struct request_sock *req); 1632 const struct sock *addr_sk);
1633 int (*calc_md5_hash) (char *location, 1633 int (*calc_md5_hash) (char *location,
1634 const struct tcp_md5sig_key *md5, 1634 const struct tcp_md5sig_key *md5,
1635 const struct sock *sk, 1635 const struct sock *sk,