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

Henning Rogge (spam-protected)
Sun Nov 9 20:08:34 CET 2014


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




More information about the Olsr-dev mailing list