aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/inet_hashtables.h6
-rw-r--r--include/net/sock.h1
-rw-r--r--include/net/tcp.h4
3 files changed, 9 insertions, 2 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
284static inline int inet_iif(const struct sk_buff *skb)
285{
286 return ((struct rtable *)skb->dst)->rt_iif;
287}
288
283extern struct sock *__inet_lookup_listener(const struct hlist_head *head, 289extern 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,
diff --git a/include/net/sock.h b/include/net/sock.h
index 48cc337a6566..8678313a22b4 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -558,6 +558,7 @@ struct proto {
558 558
559 kmem_cache_t *twsk_slab; 559 kmem_cache_t *twsk_slab;
560 unsigned int twsk_obj_size; 560 unsigned int twsk_obj_size;
561 atomic_t *orphan_count;
561 562
562 struct request_sock_ops *rsk_prot; 563 struct request_sock_ops *rsk_prot;
563 564
diff --git a/include/net/tcp.h b/include/net/tcp.h
index dd9a5a288f88..68f1ec1c583a 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -860,7 +860,7 @@ static __inline__ void tcp_update_wl(struct tcp_sock *tp, u32 ack, u32 seq)
860 tp->snd_wl1 = seq; 860 tp->snd_wl1 = seq;
861} 861}
862 862
863extern void tcp_destroy_sock(struct sock *sk); 863extern void inet_csk_destroy_sock(struct sock *sk);
864 864
865 865
866/* 866/*
@@ -987,7 +987,7 @@ static __inline__ void tcp_done(struct sock *sk)
987 if (!sock_flag(sk, SOCK_DEAD)) 987 if (!sock_flag(sk, SOCK_DEAD))
988 sk->sk_state_change(sk); 988 sk->sk_state_change(sk);
989 else 989 else
990 tcp_destroy_sock(sk); 990 inet_csk_destroy_sock(sk);
991} 991}
992 992
993static __inline__ void tcp_sack_reset(struct tcp_options_received *rx_opt) 993static __inline__ void tcp_sack_reset(struct tcp_options_received *rx_opt)