]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/inet_sock.h
[SCSI] NCR53C9x: remove driver
[linux-2.6-omap-h63xx.git] / include / net / inet_sock.h
index 62daf214931f5ddf825e5cd9b577b9ea2b6159d3..70013c5f4e59aba0d83f7e99df4da8898d94b05f 100644 (file)
@@ -24,6 +24,7 @@
 #include <net/flow.h>
 #include <net/sock.h>
 #include <net/request_sock.h>
+#include <net/route.h>
 
 /** struct ip_options - IP Options
  *
@@ -190,4 +191,10 @@ static inline int inet_sk_ehashfn(const struct sock *sk)
        return inet_ehashfn(laddr, lport, faddr, fport);
 }
 
+
+static inline int inet_iif(const struct sk_buff *skb)
+{
+       return ((struct rtable *)skb->dst)->rt_iif;
+}
+
 #endif /* _INET_SOCK_H */