diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-01-30 20:04:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-31 12:13:59 -0500 |
commit | a2d91241a80ec9bbc5ab24b9a2c4d730b3fa5730 (patch) | |
tree | a7f7806de977f4c0df5073c6eee1e0151d741b81 /net/ipv6/tcp_ipv6.c | |
parent | 6c05d25267ebb371c4311de6904f740342e82f7c (diff) |
tcp: md5: remove obsolete md5_add() method
We no longer use md5_add() method from struct tcp_sock_af_ops
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 3edd05ae4388..f37769ea6375 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -626,13 +626,6 @@ static int tcp_v6_md5_do_add(struct sock *sk, const struct in6_addr *peer, | |||
626 | return 0; | 626 | return 0; |
627 | } | 627 | } |
628 | 628 | ||
629 | static int tcp_v6_md5_add_func(struct sock *sk, struct sock *addr_sk, | ||
630 | u8 *newkey, __u8 newkeylen) | ||
631 | { | ||
632 | return tcp_v6_md5_do_add(sk, &inet6_sk(addr_sk)->daddr, | ||
633 | newkey, newkeylen); | ||
634 | } | ||
635 | |||
636 | static int tcp_v6_md5_do_del(struct sock *sk, const struct in6_addr *peer) | 629 | static int tcp_v6_md5_do_del(struct sock *sk, const struct in6_addr *peer) |
637 | { | 630 | { |
638 | struct tcp_sock *tp = tcp_sk(sk); | 631 | struct tcp_sock *tp = tcp_sk(sk); |
@@ -1898,7 +1891,6 @@ static const struct inet_connection_sock_af_ops ipv6_specific = { | |||
1898 | static const struct tcp_sock_af_ops tcp_sock_ipv6_specific = { | 1891 | static const struct tcp_sock_af_ops tcp_sock_ipv6_specific = { |
1899 | .md5_lookup = tcp_v6_md5_lookup, | 1892 | .md5_lookup = tcp_v6_md5_lookup, |
1900 | .calc_md5_hash = tcp_v6_md5_hash_skb, | 1893 | .calc_md5_hash = tcp_v6_md5_hash_skb, |
1901 | .md5_add = tcp_v6_md5_add_func, | ||
1902 | .md5_parse = tcp_v6_parse_md5_keys, | 1894 | .md5_parse = tcp_v6_parse_md5_keys, |
1903 | }; | 1895 | }; |
1904 | #endif | 1896 | #endif |
@@ -1930,7 +1922,6 @@ static const struct inet_connection_sock_af_ops ipv6_mapped = { | |||
1930 | static const struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = { | 1922 | static const struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = { |
1931 | .md5_lookup = tcp_v4_md5_lookup, | 1923 | .md5_lookup = tcp_v4_md5_lookup, |
1932 | .calc_md5_hash = tcp_v4_md5_hash_skb, | 1924 | .calc_md5_hash = tcp_v4_md5_hash_skb, |
1933 | .md5_add = tcp_v6_md5_add_func, | ||
1934 | .md5_parse = tcp_v6_parse_md5_keys, | 1925 | .md5_parse = tcp_v6_parse_md5_keys, |
1935 | }; | 1926 | }; |
1936 | #endif | 1927 | #endif |