]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipv4: Make inet_sock.h independent of route.h
authorKOVACS Krisztian <hidden@sch.bme.hu>
Wed, 1 Oct 2008 14:33:10 +0000 (07:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2008 14:33:10 +0000 (07:33 -0700)
inet_iif() in inet_sock.h requires route.h. Since users of inet_iif()
usually require other route.h functionality anyway this patch moves
inet_iif() to route.h.

Signed-off-by: KOVACS Krisztian <hidden@sch.bme.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
include/net/ip_vs.h
include/net/route.h
net/ipv4/netfilter/nf_nat_helper.c
net/ipv6/af_inet6.c

index e97b66e2a9d0e3384a28e00418d974bbb41ef5ce..139b78b4dfeb883eb4b59cf0bbb0017ea11244c0 100644 (file)
@@ -24,7 +24,6 @@
 #include <net/flow.h>
 #include <net/sock.h>
 #include <net/request_sock.h>
-#include <net/route.h>
 #include <net/netns/hash.h>
 
 /** struct ip_options - IP Options
@@ -195,12 +194,6 @@ static inline int inet_sk_ehashfn(const struct sock *sk)
        return inet_ehashfn(net, laddr, lport, faddr, fport);
 }
 
-
-static inline int inet_iif(const struct sk_buff *skb)
-{
-       return skb->rtable->rt_iif;
-}
-
 static inline struct request_sock *inet_reqsk_alloc(struct request_sock_ops *ops)
 {
        struct request_sock *req = reqsk_alloc(ops);
index 33e2ac6ceb3ec5605613b8a5ac06a7f24a36a599..0b2071d9326de8c059ed814848247c50d24535cb 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <net/checksum.h>
 #include <linux/netfilter.h>           /* for union nf_inet_addr */
+#include <linux/ip.h>
 #include <linux/ipv6.h>                        /* for struct ipv6hdr */
 #include <net/ipv6.h>                  /* for ipv6_addr_copy */
 
index 4f0d8c14736cba916799c7793848d8d42595483f..31d1485b624db118f292729c2639a352f0510354 100644 (file)
@@ -204,4 +204,9 @@ static inline struct inet_peer *rt_get_peer(struct rtable *rt)
        return rt->peer;
 }
 
+static inline int inet_iif(const struct sk_buff *skb)
+{
+       return skb->rtable->rt_iif;
+}
+
 #endif /* _ROUTE_H */
index 11976ea2988493eee1b108aceb677da3d5637250..112dcfa12900709e28cbe94591528932fda04c7e 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/udp.h>
 #include <net/checksum.h>
 #include <net/tcp.h>
+#include <net/route.h>
 
 #include <linux/netfilter_ipv4.h>
 #include <net/netfilter/nf_conntrack.h>
index 95055f8c3f35eb18d17f4848fe0ae72ed648bbc2..f018704ecb8698516932ca57a4151dafa6152f3f 100644 (file)
@@ -50,6 +50,7 @@
 #include <net/ipip.h>
 #include <net/protocol.h>
 #include <net/inet_common.h>
+#include <net/route.h>
 #include <net/transp_v6.h>
 #include <net/ip6_route.h>
 #include <net/addrconf.h>