<div dir="ltr"><div><div>Hi,<br><br></div>Thank you for replay and help.<br><br></div>This patch help solve problem with unix/ifnet.c but next files need similar patch ?:<br><br><div>src/olsrd_jsoninfo.c: In function `plugin_ipc_init':<br>src/olsrd_jsoninfo.c:390: error: `IPV6_V6ONLY' undeclared (first use in this function)<br>src/olsrd_jsoninfo.c:390: error: (Each undeclared identifier is reported only once<br>src/olsrd_jsoninfo.c:390: error: for each function it appears in.)<br><br><br></div><div>Sorry for asking this but I have use (and others ) Nanostation 2 which we can use only old kernel 2.4.x. <br><br><br></div><div>Best regards<br><br>Waldek<br></div><div><br><div class="gmail_extra"><div class="gmail_quote">2014-11-09 20:08 GMT+01:00 Henning Rogge <span dir="ltr"><<a href="mailto:hrogge@gmail.com" target="_blank">hrogge@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
could you two test this patch?<br>
<br>
diff --git a/src/unix/ifnet.c b/src/unix/ifnet.c<br>
index 206fc25..a1c64f1 100644<br>
--- a/src/unix/ifnet.c<br>
+++ b/src/unix/ifnet.c<br>
@@ -790,10 +790,12 @@ chk_if_up(struct olsr_if *iface, int debuglvl<br>
__attribute__ ((unused)))<br>
}<br>
} else {<br>
/* IP version 6 */<br>
+#ifdef IPV6_TCLASS<br>
if (setsockopt(ifp->send_socket, IPPROTO_IPV6, IPV6_TCLASS, (char<br>
*)&tos_bits, sizeof(tos_bits)) < 0) {<br>
perror("setsockopt(IPV6_TCLASS)");<br>
olsr_syslog(OLSR_LOG_ERR, "setsockopt(IPV6_TCLASS) error %m");<br>
}<br>
+#endif<br>
}<br>
#endif /* __linux__ */<br>
<br>
<br>
<br>
<br>
Normally we don't support stuff this old, but it seemed quite straight forward.<br>
<span class=""><font color="#888888"><br>
Henning<br>
</font></span><span class="im"><br>
On Sun, Nov 9, 2014 at 7:48 PM, <<a href="mailto:sp2ong@wp.pl">sp2ong@wp.pl</a>> wrote:<br>
</span><div class=""><div class="h5">> Hello,<br>
><br>
> I have try to update olsrd from 0.6.4.1 to other new on SDK AirMAXOS UBNT<br>
> (mips version with linux kernel v2.4.15) but from olsrd version 0.6.5.2 to<br>
> latest I have always problem<br>
><br>
> [CC] src/unix/ifnet.c<br>
> src/unix/ifnet.c: In function `chk_if_up':<br>
> src/unix/ifnet.c:793: error: `IPV6_TCLASS' undeclared (first use in this<br>
> function)<br>
> src/unix/ifnet.c:793: error: (Each undeclared identifier is reported only<br>
> once<br>
> src/unix/ifnet.c:793: error: for each function it appears in.)<br>
> make[3]: *** [src/unix/ifnet.o] error 1<br>
><br>
> I don't know how to fix this problem to get possibility update olsr on my<br>
> WIFI Nanostation device<br>
><br>
> Bets regards<br>
> Waldek<br>
><br>
</div></div><div class=""><div class="h5">> --<br>
> Olsr-dev mailing list<br>
> <a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
> <a href="https://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-dev</a><br>
<br>
</div></div></blockquote></div><br></div></div></div>