On Tue, Mar 5, 2013 at 3:44 PM, Pravin B Shelar <pshe...@nicira.com> wrote:
> diff --git a/datapath/tunnel.c b/datapath/tunnel.c
> index 83d2c41..dbe4ebc 100644
> --- a/datapath/tunnel.c
> +++ b/datapath/tunnel.c
> @@ -27,6 +27,7 @@
>  #include <linux/version.h>
>  #include <linux/workqueue.h>
>  #include <linux/rculist.h>
> +#include <net/ip.h>
>  #include <net/route.h>
>  #include <net/xfrm.h>
>
> @@ -203,6 +204,7 @@ error:
>         return ERR_PTR(err);
>  }
>
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)

I'm somewhat inclined to provide a backport for
inet_get_local_port_range() for kernels older than 2.6.24 (which is
when it was actually introduced).  If there isn't an easy alternate
way to get those values, then it can just statically return some
defaults.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to