diff options
| author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-01 15:25:03 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-09-02 04:03:43 -0400 |
| commit | b2e4b3debc327a5b53d9622e0b1785eea2ea2aad (patch) | |
| tree | 641e35a5d3b24d3d780259243173cf5b63bb9afd /net/ipv6/tcp_ipv6.c | |
| parent | 98147d527a038c4aab599e57323a4e5d727c28a6 (diff) | |
tcp: MD5 operations should be const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index d849dd53b788..eadbc584e919 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
| @@ -78,8 +78,8 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb); | |||
| 78 | static struct inet_connection_sock_af_ops ipv6_mapped; | 78 | static struct inet_connection_sock_af_ops ipv6_mapped; |
| 79 | static struct inet_connection_sock_af_ops ipv6_specific; | 79 | static struct inet_connection_sock_af_ops ipv6_specific; |
| 80 | #ifdef CONFIG_TCP_MD5SIG | 80 | #ifdef CONFIG_TCP_MD5SIG |
| 81 | static struct tcp_sock_af_ops tcp_sock_ipv6_specific; | 81 | static const struct tcp_sock_af_ops tcp_sock_ipv6_specific; |
| 82 | static struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific; | 82 | static const struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific; |
| 83 | #else | 83 | #else |
| 84 | static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(struct sock *sk, | 84 | static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(struct sock *sk, |
| 85 | struct in6_addr *addr) | 85 | struct in6_addr *addr) |
| @@ -894,7 +894,7 @@ struct request_sock_ops tcp6_request_sock_ops __read_mostly = { | |||
| 894 | }; | 894 | }; |
| 895 | 895 | ||
| 896 | #ifdef CONFIG_TCP_MD5SIG | 896 | #ifdef CONFIG_TCP_MD5SIG |
| 897 | static struct tcp_request_sock_ops tcp_request_sock_ipv6_ops = { | 897 | static const struct tcp_request_sock_ops tcp_request_sock_ipv6_ops = { |
| 898 | .md5_lookup = tcp_v6_reqsk_md5_lookup, | 898 | .md5_lookup = tcp_v6_reqsk_md5_lookup, |
| 899 | .calc_md5_hash = tcp_v6_md5_hash_skb, | 899 | .calc_md5_hash = tcp_v6_md5_hash_skb, |
| 900 | }; | 900 | }; |
| @@ -1780,7 +1780,7 @@ static struct inet_connection_sock_af_ops ipv6_specific = { | |||
| 1780 | }; | 1780 | }; |
| 1781 | 1781 | ||
| 1782 | #ifdef CONFIG_TCP_MD5SIG | 1782 | #ifdef CONFIG_TCP_MD5SIG |
| 1783 | static struct tcp_sock_af_ops tcp_sock_ipv6_specific = { | 1783 | static const struct tcp_sock_af_ops tcp_sock_ipv6_specific = { |
| 1784 | .md5_lookup = tcp_v6_md5_lookup, | 1784 | .md5_lookup = tcp_v6_md5_lookup, |
| 1785 | .calc_md5_hash = tcp_v6_md5_hash_skb, | 1785 | .calc_md5_hash = tcp_v6_md5_hash_skb, |
| 1786 | .md5_add = tcp_v6_md5_add_func, | 1786 | .md5_add = tcp_v6_md5_add_func, |
| @@ -1812,7 +1812,7 @@ static struct inet_connection_sock_af_ops ipv6_mapped = { | |||
| 1812 | }; | 1812 | }; |
| 1813 | 1813 | ||
| 1814 | #ifdef CONFIG_TCP_MD5SIG | 1814 | #ifdef CONFIG_TCP_MD5SIG |
| 1815 | static struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = { | 1815 | static const struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = { |
| 1816 | .md5_lookup = tcp_v4_md5_lookup, | 1816 | .md5_lookup = tcp_v4_md5_lookup, |
| 1817 | .calc_md5_hash = tcp_v4_md5_hash_skb, | 1817 | .calc_md5_hash = tcp_v4_md5_hash_skb, |
| 1818 | .md5_add = tcp_v6_md5_add_func, | 1818 | .md5_add = tcp_v6_md5_add_func, |
