diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 23:11:41 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:49:24 -0400 |
commit | 0a5578cf8e5e045aaa68643c17ce885426697c6b (patch) | |
tree | 1c58ba5c3236499ec5abeedcc43faa7bed816b07 /net/ipv4/tcp_ipv4.c | |
parent | 9f1d2604c71498579609b1532fedc5a89276bb00 (diff) |
[ICSK]: Generalise tcp_listen_{start,stop}
This also moved inet_iif from tcp to inet_hashtables.h, as it is
needed by the inet_lookup callers, perhaps this needs a bit of
polishing, but for now seems fine.
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 2f605b9e6b67..b966102b9f39 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -431,11 +431,6 @@ failure: | |||
431 | return err; | 431 | return err; |
432 | } | 432 | } |
433 | 433 | ||
434 | static inline int inet_iif(const struct sk_buff *skb) | ||
435 | { | ||
436 | return ((struct rtable *)skb->dst)->rt_iif; | ||
437 | } | ||
438 | |||
439 | /* | 434 | /* |
440 | * This routine does path mtu discovery as defined in RFC1191. | 435 | * This routine does path mtu discovery as defined in RFC1191. |
441 | */ | 436 | */ |
@@ -1993,6 +1988,7 @@ struct proto tcp_prot = { | |||
1993 | .get_port = tcp_v4_get_port, | 1988 | .get_port = tcp_v4_get_port, |
1994 | .enter_memory_pressure = tcp_enter_memory_pressure, | 1989 | .enter_memory_pressure = tcp_enter_memory_pressure, |
1995 | .sockets_allocated = &tcp_sockets_allocated, | 1990 | .sockets_allocated = &tcp_sockets_allocated, |
1991 | .orphan_count = &tcp_orphan_count, | ||
1996 | .memory_allocated = &tcp_memory_allocated, | 1992 | .memory_allocated = &tcp_memory_allocated, |
1997 | .memory_pressure = &tcp_memory_pressure, | 1993 | .memory_pressure = &tcp_memory_pressure, |
1998 | .sysctl_mem = sysctl_tcp_mem, | 1994 | .sysctl_mem = sysctl_tcp_mem, |