summaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
authorKOVACS Krisztian <hidden@sch.bme.hu>2008-10-01 07:33:10 -0700
committerDavid S. Miller <davem@davemloft.net>2008-10-01 07:33:10 -0700
commit1668e010cbe1a7567c81d4c02d31dde9859e9da1 (patch)
treef3505d22a93ed9a4b6140a7f98a9d4cc2c1f66e9 /include/net/route.h
parentb9fb15067ce93497bef852c05e406d7a96212a9a (diff)
ipv4: Make inet_sock.h independent of route.h
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>
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 4f0d8c14736..31d1485b624 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -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 */