[ovs-dev] [PATCH] Fix compiling error in netbsd

Hui Kang hkang.sunysb at gmail.com
Tue Dec 20 18:26:27 UTC 2016


Please ignore this patch.

- Hui

On Tue, Dec 20, 2016 at 1:24 PM, Hui Kang <hkang.sunysb at gmail.com> wrote:
> In some netbsd version, RTF_LLINFO is undefined
>
> Signed-off-by: Hui Kang <hkang.sunysb at gmail.com>
> ---
>  lib/netdev-bsd.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c
> index 75a330b..94c515d 100644
> --- a/lib/netdev-bsd.c
> +++ b/lib/netdev-bsd.c
> @@ -1357,7 +1357,11 @@ netdev_bsd_arp_lookup(const struct netdev *netdev OVS_UNUSED,
>      mib[2] = 0;
>      mib[3] = AF_INET;
>      mib[4] = NET_RT_FLAGS;
> +#ifdef RTF_LLINFO
>      mib[5] = RTF_LLINFO;
> +#else
> +    mib[5] = 0;
> +#endif
>      if (sysctl(mib, 6, NULL, &needed, NULL, 0) == -1) {
>          error = errno;
>          goto error;
> --
> 1.9.1
>


More information about the dev mailing list