build: fix compile issues with <= 2.6.19

Resolve compile breakage from commits
36f80be2f7 and
7b9ca945d4.
This commit is contained in:
Jan Engelhardt
2009-03-07 02:58:36 +01:00
parent d263cfbd50
commit e11a07b230
3 changed files with 16 additions and 5 deletions

View File

@@ -5,8 +5,11 @@ struct tcphdr;
struct udphdr;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 19)
# define skb_ifindex(skb) \
(((skb)->input_dev != NULL) ? (skb)->input_dev->ifindex : 0)
# define skb_nfmark(skb) (((struct sk_buff *)(skb))->nfmark)
#else
# define skb_ifindex(skb) (skb)->iif
# define skb_nfmark(skb) (((struct sk_buff *)(skb))->mark)
#endif