[Olsr-dev] can't compile tip on os x and freebsd
John Hay
(spam-protected)
Wed Jun 4 15:15:11 CEST 2008
Hi,
Maybe just a little heads-up. I do not know if this is an ipv6 only
problem, but with time I seem to loose all my HNA entries. This did
not happen with 0.5.5.
Something about the setup. It is all ipv6-only. The rest of the boxes
run 0.5.5 and here and there a fixed 0.5.4. They all seem fine. It is
only the box that run 0.5.6rc4 that have the problem. When I start
olsrd or reboot the box, it will pick up all the routes and then over
a period (an hour and more) it will slowly start to loose HNA entries.
The other routes still seem to be there.
John
--
John Hay -- (spam-protected) / (spam-protected)
On Tue, Jun 03, 2008 at 12:00:55PM +0200, John Hay wrote:
> Hi Henning,
>
> On Thu, May 29, 2008 at 07:22:12PM +0200, Henning Rogge wrote:
> > The attached patch solves the problem in tc_set.c, but I get lot's of
> > compiler errors in the BSD specific parts... and I have not enough
> > experience (nearly none) with BSD to solve them.
> >
> > If someone else can test the patch (maybe the BSD specific problem is
> > a toolchain problem) I will push it into the repository.
>
> Your patch for tc_set.c looks ok. It is the same I came up with.
>
> Here is my patch to make src/bsd/kernel_routes.c compile on FreeBSD.
> I had a look through the previous change:
>
> http://olsrd.sourceforge.net/hg/olsrd/diff/39c92239c5bc/src/bsd/kernel_routes.c
>
> which is where stuff got broken and I think it is ok. I do not have an
> ipv4 network to test it on though. The ipv6 part does seem to work
> though. It connects to our network and the routes get updated. I have
> not tested it much more than that.
>
> About the patch, the BSDs that I know do not have ifaddrs.h in a sub
> directory. We also do not have struct sockaddr_rt.
>
> John
> --
> John Hay -- (spam-protected) / (spam-protected)
>
>
> --- src/bsd/kernel_routes.c.orig 2008-05-24 12:28:31.000000000 +0200
> +++ src/bsd/kernel_routes.c 2008-06-03 09:24:21.000000000 +0200
> @@ -48,7 +48,7 @@
> #include "ipcalc.h"
>
> #include <net/if_dl.h>
> -#include <net/ifaddrs.h>
> +#include <ifaddrs.h>
>
> #ifdef _WRS_KERNEL
> #include <wrn/coreip/net/route.h>
> @@ -126,11 +126,13 @@
> sin.sin_addr = rt->rt_dst.prefix.v4;
> OLSR_PRINTF(8, "\t- Destination of the route: %s\n", inet_ntoa(sin.sin_addr));
>
> +#ifdef _WRS_KERNEL
> /* change proto or tos here */
> OLSR_PRINTF(8, "\t- Setting Protocol: 0\n");
> ((struct sockaddr_rt *)(&sin))->srt_proto = 0;
> OLSR_PRINTF(8, "\t- Setting TOS: 0\n");
> ((struct sockaddr_rt *)(&sin))->srt_tos = 0;
> +#endif
>
> memcpy(walker, &sin, sizeof(sin));
> walker += sin_size;
>
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
More information about the Olsr-dev
mailing list