diff options
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r-- | include/net/inet_hashtables.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index f0c21c07f894..646b6ea7fe26 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/wait.h> | 26 | #include <linux/wait.h> |
27 | 27 | ||
28 | #include <net/inet_connection_sock.h> | 28 | #include <net/inet_connection_sock.h> |
29 | #include <net/route.h> | ||
29 | #include <net/sock.h> | 30 | #include <net/sock.h> |
30 | #include <net/tcp_states.h> | 31 | #include <net/tcp_states.h> |
31 | 32 | ||
@@ -280,6 +281,11 @@ out: | |||
280 | wake_up(&hashinfo->lhash_wait); | 281 | wake_up(&hashinfo->lhash_wait); |
281 | } | 282 | } |
282 | 283 | ||
284 | static inline int inet_iif(const struct sk_buff *skb) | ||
285 | { | ||
286 | return ((struct rtable *)skb->dst)->rt_iif; | ||
287 | } | ||
288 | |||
283 | extern struct sock *__inet_lookup_listener(const struct hlist_head *head, | 289 | extern struct sock *__inet_lookup_listener(const struct hlist_head *head, |
284 | const u32 daddr, | 290 | const u32 daddr, |
285 | const unsigned short hnum, | 291 | const unsigned short hnum, |