aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/tcp_minisocks.c2
-rw-r--r--net/ipv6/tcp_ipv6.c10
2 files changed, 7 insertions, 5 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index ac55d8892cf1..4a0ee901a888 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -361,8 +361,8 @@ void tcp_time_wait(struct sock *sk, int state, int timeo)
361 361
362void tcp_twsk_destructor(struct sock *sk) 362void tcp_twsk_destructor(struct sock *sk)
363{ 363{
364 struct tcp_timewait_sock *twsk = tcp_twsk(sk);
365#ifdef CONFIG_TCP_MD5SIG 364#ifdef CONFIG_TCP_MD5SIG
365 struct tcp_timewait_sock *twsk = tcp_twsk(sk);
366 if (twsk->tw_md5_keylen) 366 if (twsk->tw_md5_keylen)
367 tcp_put_md5sig_pool(); 367 tcp_put_md5sig_pool();
368#endif 368#endif
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 663d1d238014..edef7eef8341 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -81,8 +81,10 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb);
81 81
82static struct inet_connection_sock_af_ops ipv6_mapped; 82static struct inet_connection_sock_af_ops ipv6_mapped;
83static struct inet_connection_sock_af_ops ipv6_specific; 83static struct inet_connection_sock_af_ops ipv6_specific;
84#ifdef CONFIG_TCP_MD5SIG
84static struct tcp_sock_af_ops tcp_sock_ipv6_specific; 85static struct tcp_sock_af_ops tcp_sock_ipv6_specific;
85static struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific; 86static struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific;
87#endif
86 88
87static int tcp_v6_get_port(struct sock *sk, unsigned short snum) 89static int tcp_v6_get_port(struct sock *sk, unsigned short snum)
88{ 90{
@@ -1843,14 +1845,14 @@ static struct inet_connection_sock_af_ops ipv6_specific = {
1843#endif 1845#endif
1844}; 1846};
1845 1847
1846static struct tcp_sock_af_ops tcp_sock_ipv6_specific = {
1847#ifdef CONFIG_TCP_MD5SIG 1848#ifdef CONFIG_TCP_MD5SIG
1849static struct tcp_sock_af_ops tcp_sock_ipv6_specific = {
1848 .md5_lookup = tcp_v6_md5_lookup, 1850 .md5_lookup = tcp_v6_md5_lookup,
1849 .calc_md5_hash = tcp_v6_calc_md5_hash, 1851 .calc_md5_hash = tcp_v6_calc_md5_hash,
1850 .md5_add = tcp_v6_md5_add_func, 1852 .md5_add = tcp_v6_md5_add_func,
1851 .md5_parse = tcp_v6_parse_md5_keys, 1853 .md5_parse = tcp_v6_parse_md5_keys,
1852#endif
1853}; 1854};
1855#endif
1854 1856
1855/* 1857/*
1856 * TCP over IPv4 via INET6 API 1858 * TCP over IPv4 via INET6 API
@@ -1874,14 +1876,14 @@ static struct inet_connection_sock_af_ops ipv6_mapped = {
1874#endif 1876#endif
1875}; 1877};
1876 1878
1877static struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = {
1878#ifdef CONFIG_TCP_MD5SIG 1879#ifdef CONFIG_TCP_MD5SIG
1880static struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = {
1879 .md5_lookup = tcp_v4_md5_lookup, 1881 .md5_lookup = tcp_v4_md5_lookup,
1880 .calc_md5_hash = tcp_v4_calc_md5_hash, 1882 .calc_md5_hash = tcp_v4_calc_md5_hash,
1881 .md5_add = tcp_v6_md5_add_func, 1883 .md5_add = tcp_v6_md5_add_func,
1882 .md5_parse = tcp_v6_parse_md5_keys, 1884 .md5_parse = tcp_v6_parse_md5_keys,
1883#endif
1884}; 1885};
1886#endif
1885 1887
1886/* NOTE: A lot of things set to zero explicitly by call to 1888/* NOTE: A lot of things set to zero explicitly by call to
1887 * sk_alloc() so need not be done here. 1889 * sk_alloc() so need not be done here.