diff options
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r-- | include/net/inet_hashtables.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index b5c0d64ea741..f0c21c07f894 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/config.h> | 17 | #include <linux/config.h> |
18 | 18 | ||
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/ip.h> | ||
21 | #include <linux/ipv6.h> | 20 | #include <linux/ipv6.h> |
22 | #include <linux/list.h> | 21 | #include <linux/list.h> |
23 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
@@ -26,6 +25,7 @@ | |||
26 | #include <linux/types.h> | 25 | #include <linux/types.h> |
27 | #include <linux/wait.h> | 26 | #include <linux/wait.h> |
28 | 27 | ||
28 | #include <net/inet_connection_sock.h> | ||
29 | #include <net/sock.h> | 29 | #include <net/sock.h> |
30 | #include <net/tcp_states.h> | 30 | #include <net/tcp_states.h> |
31 | 31 | ||
@@ -185,9 +185,9 @@ static inline void __inet_inherit_port(struct inet_hashinfo *table, | |||
185 | struct inet_bind_bucket *tb; | 185 | struct inet_bind_bucket *tb; |
186 | 186 | ||
187 | spin_lock(&head->lock); | 187 | spin_lock(&head->lock); |
188 | tb = inet_sk(sk)->bind_hash; | 188 | tb = inet_csk(sk)->icsk_bind_hash; |
189 | sk_add_bind_node(child, &tb->owners); | 189 | sk_add_bind_node(child, &tb->owners); |
190 | inet_sk(child)->bind_hash = tb; | 190 | inet_csk(child)->icsk_bind_hash = tb; |
191 | spin_unlock(&head->lock); | 191 | spin_unlock(&head->lock); |
192 | } | 192 | } |
193 | 193 | ||