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

Henning Rogge (spam-protected)
Mon Nov 10 14:03:44 CET 2014


The patches look reasonable, they should not be a problem with the
current kernels.

Ferry, do you see a problem with these changes?

Hennig

On Mon, Nov 10, 2014 at 1:56 PM, Waldek SPdwaONG <(spam-protected)> wrote:
> Hi,
>
> One big problem for old devices UBNT like NS2 (not NS Mx models) where we
> use AirMAX OS SDK which have kernel 2.4.x and if we want to use latest olsr
> we have problem with compile (but after apply patch now OK).
> I have try use OpenWRT Attitude Adjustment on NS2 but is is not enough space
> to load olsrd with plugins and  it is very slow WEB interface compare to
> original AirMAX OS. One way with NS2 NS5 etc UBNT is use Backfire 10.03.1
> but WEB interface is slowly to compare AirMAX OS for this reason we can only
> use AirMAX SDK with kernel 2.4 or Backfire OpenWRT.
> This patch is necessary for unix/iface.c
> and lib/txtinfo/src/olsrd_txtinfo.c, lib/jsoninfo/src/olsrd_jsoninfo.c to
> problem with "IPV6_V6ONLY"
>
> I have apply (it is work but I am not sure that iti is correct place):
>
> #if defined linux
>     if (jsoninfo_ipv6_only && olsr_cnf->ip_version == AF_INET6) {
> #ifdef IPV6_V6ONLY
>       if (setsockopt(ipc_socket, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&yes,
> sizeof(yes)) < 0) {
>         perror("IPV6_V6ONLY failed");
>         return 0;
>       }
> #endif
>     }
> #endif /* defined linux */
>     /* Bind the socket */
>
> and for olsrd_txtinfo.c
>
> #if defined linux
>     if (txtinfo_ipv6_only && olsr_cnf->ip_version == AF_INET6) {
> #ifdef IPV6_V6ONLY
>       if (setsockopt(ipc_socket, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&yes,
> sizeof(yes)) < 0) {
>         perror("IPV6_V6ONLY failed");
>         return 0;
>       }
> #endif
>     }
> #endif /* defined linux */
>     /* Bind the socket */
>
>
> 2014-11-10 10:11 GMT+01:00 Henning Rogge <(spam-protected)>:
>>
>> On Sun, Nov 9, 2014 at 9:07 PM,  <(spam-protected)> wrote:
>> > Sorry for asking this but I have use (and others ) Nanostation 2 which
>> > we
>> > can use only old kernel 2.4.x.
>>
>> I think OpenWRT Attitude Adjustment should run on a 4MB flash device.
>>
>> In fact I have used kernel 2.6 on the original (pre 802.11n) Ubiquiti
>> hardware.
>>
>> What do you think of a deal... you start looking for the places where
>> you get errors (and eliminate them by commenting them out) and post
>> them here and I look if we can do an easy patch for them that wont
>> break too much for you.
>>
>> Henning Rogge
>>
>
>
>
> --
> Waldek sp2ong




More information about the Olsr-dev mailing list