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>
This commit is contained in:
KOVACS Krisztian
2008-10-01 07:33:10 -07:00
committed by David S. Miller
parent b9fb15067c
commit 1668e010cb
5 changed files with 8 additions and 7 deletions

View 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 */