#include <linux/module.h>
+#include <linux/version.h>
#include <net/sock.h>
#include <net/protocol.h>
#include <net/ip.h>
log_error("Route lookup failed\n");
goto out_free;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
+ sk_dst_set(sk, dst_clone(&rt->u.dst));
+#else
sk_dst_set(sk, dst_clone(&rt->dst));
+#endif
}
err = ip_queue_xmit(skb);