[Csync2] [patch] fix build on FreeBSD and Ubuntu 10.04

Andrey Zonov andrey at zonov.org
Sat Oct 29 17:03:42 CEST 2011


29.10.2011 17:47, Andrey Zonov wrote:
> 28.10.2011 12:56, Lars Ellenberg wrote:
>> On Thu, Oct 27, 2011 at 07:08:18PM +0400, Andrey Zonov wrote:
>>> [6] patch-use-ipv4-csync2.c
>> If you want, you can add a "-4" or "-6" option.
>>
>> But patching it to only allow IPv4 is certainly the wrong approach.
>> Actually, I think, the bind loop there should even prefer AF_INET6,
>> as sockets bound to :::xyz are reachable by IPv4 as well as IPv6
>> (at least on linux...).
>>
>> So, no, [6] is rejected.
>
> As far as I know for that trick must be run FAITH daemon.

Ooops, it's not a FAITH daemon, it's an IPv4-mapping which is turned on 
by default in Linux, but turned off by default in FreeBSD. To turn on in 
FreeBSD it's needed to set sysctl net.inet6.ip6.v6only to 1 and add 
ipv6_ipv4mapping="YES" to /etc/rc.conf.

-- 
Andrey Zonov



More information about the Csync2 mailing list