diff options
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 8 | ||||
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 7684297d80aa..a1222d6968c4 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1233,11 +1233,11 @@ struct request_sock_ops tcp_request_sock_ops __read_mostly = { | |||
1233 | .send_reset = tcp_v4_send_reset, | 1233 | .send_reset = tcp_v4_send_reset, |
1234 | }; | 1234 | }; |
1235 | 1235 | ||
1236 | static struct tcp_request_sock_ops tcp_request_sock_ipv4_ops = { | ||
1237 | #ifdef CONFIG_TCP_MD5SIG | 1236 | #ifdef CONFIG_TCP_MD5SIG |
1237 | static struct tcp_request_sock_ops tcp_request_sock_ipv4_ops = { | ||
1238 | .md5_lookup = tcp_v4_reqsk_md5_lookup, | 1238 | .md5_lookup = tcp_v4_reqsk_md5_lookup, |
1239 | #endif | ||
1240 | }; | 1239 | }; |
1240 | #endif | ||
1241 | 1241 | ||
1242 | static struct timewait_sock_ops tcp_timewait_sock_ops = { | 1242 | static struct timewait_sock_ops tcp_timewait_sock_ops = { |
1243 | .twsk_obj_size = sizeof(struct tcp_timewait_sock), | 1243 | .twsk_obj_size = sizeof(struct tcp_timewait_sock), |
@@ -1820,14 +1820,14 @@ struct inet_connection_sock_af_ops ipv4_specific = { | |||
1820 | #endif | 1820 | #endif |
1821 | }; | 1821 | }; |
1822 | 1822 | ||
1823 | static struct tcp_sock_af_ops tcp_sock_ipv4_specific = { | ||
1824 | #ifdef CONFIG_TCP_MD5SIG | 1823 | #ifdef CONFIG_TCP_MD5SIG |
1824 | static struct tcp_sock_af_ops tcp_sock_ipv4_specific = { | ||
1825 | .md5_lookup = tcp_v4_md5_lookup, | 1825 | .md5_lookup = tcp_v4_md5_lookup, |
1826 | .calc_md5_hash = tcp_v4_calc_md5_hash, | 1826 | .calc_md5_hash = tcp_v4_calc_md5_hash, |
1827 | .md5_add = tcp_v4_md5_add_func, | 1827 | .md5_add = tcp_v4_md5_add_func, |
1828 | .md5_parse = tcp_v4_parse_md5_keys, | 1828 | .md5_parse = tcp_v4_parse_md5_keys, |
1829 | #endif | ||
1830 | }; | 1829 | }; |
1830 | #endif | ||
1831 | 1831 | ||
1832 | /* NOTE: A lot of things set to zero explicitly by call to | 1832 | /* NOTE: A lot of things set to zero explicitly by call to |
1833 | * sk_alloc() so need not be done here. | 1833 | * sk_alloc() so need not be done here. |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index dd1a23b5a0f5..c25e930c2c69 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -929,11 +929,11 @@ static struct request_sock_ops tcp6_request_sock_ops __read_mostly = { | |||
929 | .send_reset = tcp_v6_send_reset | 929 | .send_reset = tcp_v6_send_reset |
930 | }; | 930 | }; |
931 | 931 | ||
932 | static struct tcp_request_sock_ops tcp_request_sock_ipv6_ops = { | ||
933 | #ifdef CONFIG_TCP_MD5SIG | 932 | #ifdef CONFIG_TCP_MD5SIG |
933 | static struct tcp_request_sock_ops tcp_request_sock_ipv6_ops = { | ||
934 | .md5_lookup = tcp_v6_reqsk_md5_lookup, | 934 | .md5_lookup = tcp_v6_reqsk_md5_lookup, |
935 | #endif | ||
936 | }; | 935 | }; |
936 | #endif | ||
937 | 937 | ||
938 | static struct timewait_sock_ops tcp6_timewait_sock_ops = { | 938 | static struct timewait_sock_ops tcp6_timewait_sock_ops = { |
939 | .twsk_obj_size = sizeof(struct tcp6_timewait_sock), | 939 | .twsk_obj_size = sizeof(struct tcp6_timewait_sock), |