[Olsr-dev] two patches for FreeBSD

Henning Rogge (spam-protected)
Sat Mar 21 20:14:59 CET 2009


On Samstag 21 März 2009 20:05:03 John Hay wrote:
> Hi,
>
> I have been trying out 0.5.6 tip and had two problems:
>
> FreeBSD-current does not have RTF_CLONING anymore, so I put it in a
> #ifdef RTF_CLONING
>
> The reshuffling in add_del_route6() broke the actual adding of IPv6
> routes.
>
> John
> --
> John Hay -- (spam-protected) / (spam-protected)
>
>
> --- src/bsd/kernel_routes.c.orig	2009-03-17 23:52:47.000000000 +0200
> +++ src/bsd/kernel_routes.c	2009-03-21 19:45:54.000000000 +0200
> @@ -176,7 +176,9 @@
>        memcpy(walker, sdl, sdl->sdl_len);
>        walker += sdl_size;
>        rtm->rtm_addrs |= RTA_GATEWAY;
> +#ifdef RTF_CLONING
>        rtm->rtm_flags |= RTF_CLONING;
> +#endif
>  #ifndef _WRS_KERNEL
>        rtm->rtm_flags &= ~RTF_HOST;
>  #endif
> @@ -295,7 +297,7 @@
>  #endif
>      memcpy(walker, &sin6, sizeof(sin6));
>      walker += sin_size;
> -    rtm->rtm_addrs = RTA_GATEWAY;
> +    rtm->rtm_addrs |= RTA_GATEWAY;
>    }
>    else {
>      /*
> @@ -313,7 +315,7 @@
>  #endif
>      memcpy(walker, &sin6, sizeof(sin6));
>      walker += sin_size;
> -    rtm->rtm_addrs = RTA_GATEWAY;
> +    rtm->rtm_addrs |= RTA_GATEWAY;
>      rtm->rtm_flags |= RTF_GATEWAY;
>    }

Aaron, can you just push it through your virtual machines and the Mac and push 
it to the development repository ?

Henning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20090321/e6821ed2/attachment.sig>


More information about the Olsr-dev mailing list