[Olsr-dev] [PATCH] olsrd Fix listen on ip6 only in jsoninfo

Ferry Huberts (spam-protected)
Thu Jul 10 15:22:35 CEST 2014



On 10/07/14 14:29, Patrick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> I have build and test a freifunk firmware with these patches.
> https://github.com/freifunk/firmware-berlin/blob/master/patches/routing-olsrd-json-bind-v6-only.patch
>

that patch also affects txtinfo.

I'm fine with patching both but would like to see 2 separate patches.
And your full name please.

> The same applies to the txtinfo plugin.
>
> I resend a git patch to this list.
>
> Greetings
>                 Patrick
>
> Am 10.07.14 12:39, schrieb Ferry Huberts:
>>
>>
>> On 10/07/14 12:33, Henning Rogge wrote:
>>> I am okay with this patch, any thoughts from you Ferry?
>>>
>>
>> I'm ok under the assumption that Patrick did test it. Did you Patrick?
>>
>> I'm currently running the build to see if nothing breaks.
>>
>> Patrick, can you mail a git patch to the list, with your full name
>> configured in git (so not just your first name)?
>>
>>> Henning
>>>
>>> On Thu, Jul 10, 2014 at 12:25 AM, Patrick <(spam-protected)> wrote:
>> Hi
>>
>> I cant start 2 process of olsrd with ip6 and ip4.
>> The ip6 process is listen on ip4 tcp port 9090.
>>
>> I'm not sure if this the right places to do this.
>>
>> diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c
>> index d86fa88..0db7609 100644
>> --- a/lib/jsoninfo/src/olsrd_jsoninfo.c
>> +++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
>> @@ -385,6 +385,14 @@ plugin_ipc_init(void)
>>          return 0;
>>        }
>>    #endif /* (defined __FreeBSD__ || defined __FreeBSD_kernel__) && defined SO_NOSIGPIPE */
>> +#if defined linux
>> +    if (olsr_cnf->ip_version == AF_INET6) {
>> +      if (setsockopt(ipc_socket, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&yes, sizeof(yes)) < 0) {
>> +        perror("IPV6_V6ONLY failed");
>> +        return 0;
>> +      }
>> +    }
>> +#endif /* defined linux */
>>        /* Bind the socket */
>>
>>        /* complete the socket structure */
>>>>
>>>> --
>>>> Olsr-dev mailing list
>>>> (spam-protected)
>>>> https://lists.olsr.org/mailman/listinfo/olsr-dev
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlO+hy0ACgkQr9m0OkMZoqS2xwCffLstKsQyj4eKggKxk2GEaYkd
> M/4AoL95yFs/A152GHEA5ce1SAuYCcNg
> =MmM3
> -----END PGP SIGNATURE-----
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list