[Olsr-dev] jsoninfo ipv6only flag / OpenWrt

Henning Rogge (spam-protected)
Thu Oct 23 16:41:55 CEST 2014


On Thu, Oct 23, 2014 at 10:28 AM, Bastian Bittorf
<(spam-protected)> wrote:
> * cholin <(spam-protected)> [23.10.2014 10:06]:
>> LoadPlugin "olsrd_jsoninfo.so.0.0"
>> {
>>       PlParam "accept" "::"
>>       PlParam "ipv6only" "true"
>> }
>>
>> Am I misunderstanding this option or what am I doing wrong here?
>
> i did the same on openwrt with:
> olsr.org-0.6.7-git_fa1ee2b-hash_02c74aa5e398954425461ade7b4ccc90
>
> # this is in '/etc/config/olsrd'
> config LoadPlugin
>         option library 'olsrd_jsoninfo.so.0.0'
>         option port 5555
> #       option "accept" "::"
>         option "ipv6only" "true"
>
> what is strange is, that '::' seems to be invalid

I think its a problem with the cryptic bison/flex parser... IPs need
to start with a digit, so try "0::".

OLSRv2 doesn't have this problem.

> in /lib/functions/olsrd.sh - but anyway:
>
> # this is in the generated '/var/etc/olsrd.conf'
> LoadPlugin "olsrd_jsoninfo.so.0.0"
> {
>         PlParam "port" "5555"
>         PlParam "ipv6only" "true"
> }
>
> (spam-protected):~ echo all | nc 127.0.0.1 5555 | wc -l
> 11782
>
> hmmm...bye, bastian

So this was an olsrd configured to IPv6?

Henning




More information about the Olsr-dev mailing list