[Olsr-dev] Problem with compile olsrd on SDK AirmaxOS

(spam-protected) (spam-protected)
Sun Nov 9 21:07:08 CET 2014


Hi,

Thank you for replay and help.

This patch help solve problem with unix/ifnet.c but next files need similar
patch ?:

src/olsrd_jsoninfo.c: In function `plugin_ipc_init':
src/olsrd_jsoninfo.c:390: error: `IPV6_V6ONLY' undeclared (first use in
this function)
src/olsrd_jsoninfo.c:390: error: (Each undeclared identifier is reported
only once
src/olsrd_jsoninfo.c:390: error: for each function it appears in.)


Sorry for asking this but I have use (and others ) Nanostation 2 which we
can use only old kernel 2.4.x.


Best regards

Waldek

2014-11-09 20:08 GMT+01:00 Henning Rogge <(spam-protected)>:

> Hi,
>
> could you two test this patch?
>
> diff --git a/src/unix/ifnet.c b/src/unix/ifnet.c
> index 206fc25..a1c64f1 100644
> --- a/src/unix/ifnet.c
> +++ b/src/unix/ifnet.c
> @@ -790,10 +790,12 @@ chk_if_up(struct olsr_if *iface, int debuglvl
> __attribute__ ((unused)))
>      }
>    } else {
>      /* IP version 6 */
> +#ifdef IPV6_TCLASS
>      if (setsockopt(ifp->send_socket, IPPROTO_IPV6, IPV6_TCLASS, (char
> *)&tos_bits, sizeof(tos_bits)) < 0) {
>        perror("setsockopt(IPV6_TCLASS)");
>        olsr_syslog(OLSR_LOG_ERR, "setsockopt(IPV6_TCLASS) error %m");
>      }
> +#endif
>    }
>  #endif /* __linux__ */
>
>
>
>
> Normally we don't support stuff this old, but it seemed quite straight
> forward.
>
> Henning
>
> On Sun, Nov 9, 2014 at 7:48 PM,  <(spam-protected)> wrote:
> > Hello,
> >
> > I have try to update olsrd from 0.6.4.1 to other new on SDK AirMAXOS UBNT
> > (mips version with linux kernel v2.4.15) but from olsrd version 0.6.5.2
> to
> > latest I have always problem
> >
> > [CC] src/unix/ifnet.c
> > src/unix/ifnet.c: In function `chk_if_up':
> > src/unix/ifnet.c:793: error: `IPV6_TCLASS' undeclared (first use in this
> > function)
> > src/unix/ifnet.c:793: error: (Each undeclared identifier is reported only
> > once
> > src/unix/ifnet.c:793: error: for each function it appears in.)
> > make[3]: *** [src/unix/ifnet.o] error 1
> >
> > I don't know how to fix this problem to get possibility update olsr on my
> > WIFI Nanostation device
> >
> > Bets regards
> > Waldek
> >
> > --
> > Olsr-dev mailing list
> > (spam-protected)
> > https://lists.olsr.org/mailman/listinfo/olsr-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20141109/7e2d4d72/attachment.html>


More information about the Olsr-dev mailing list