struct tcphdr;
struct udphdr;
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 30)
-static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst)
-{
- skb->dst = dst;
-}
-
-static inline struct dst_entry *skb_dst(const struct sk_buff *skb)
-{
- return skb->dst;
-}
-
-static inline struct rtable *skb_rtable(const struct sk_buff *skb)
-{
- return (void *)skb->dst;
-}
-#endif
-
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 32)
# define skb_ifindex(skb) (skb)->iif
# define skb_nfmark(skb) (((struct sk_buff *)(skb))->mark)
# define WITH_IPV6 1
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
static bool xtnu_match_run(const struct sk_buff *skb,
const struct xt_match_param *par)
}
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
static bool xtnu_match_check(const struct xt_mtchk_param *par)
{
EXPORT_SYMBOL_GPL(xtnu_unregister_matches);
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
static unsigned int
xtnu_target_run(struct sk_buff *skb, const struct xt_target_param *par)
}
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && \
LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 34)
static bool xtnu_target_check(const struct xt_tgchk_param *par)
{
#define DEBUGP Use__pr_debug__instead
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
-# warning Kernels below 2.6.30 not supported.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
+# warning Kernels below 2.6.31 not supported.
#endif
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)