diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/route.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 60d611dc5cee..c29ef2733f2d 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -277,7 +277,11 @@ static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable | |||
277 | 277 | ||
278 | static inline int inet_iif(const struct sk_buff *skb) | 278 | static inline int inet_iif(const struct sk_buff *skb) |
279 | { | 279 | { |
280 | return skb_rtable(skb)->rt_iif; | 280 | int iif = skb_rtable(skb)->rt_iif; |
281 | |||
282 | if (iif) | ||
283 | return iif; | ||
284 | return skb->skb_iif; | ||
281 | } | 285 | } |
282 | 286 | ||
283 | extern int sysctl_ip_default_ttl; | 287 | extern int sysctl_ip_default_ttl; |