[Openais] 255.255.255.255 != broadcast for interface on all platforms....

Christine Caulfield ccaulfie at redhat.com
Mon Jul 27 00:13:00 PDT 2009


On 07/27/2009 07:23 AM, Sean Chittenden wrote:
>> Have you had a look at the broadcast: yes option?  Apparently not in
>> the
>> man pages, but here is what my corosync.conf looks like:
>>
>> # Please read the corosync.conf.5 manual page
>> compatibility: none
>>
>> totem {
>>         version: 2
>>         secauth: off
>>         threads: 0
>>         crypto_accept: new
>>         interface {
>>                 ringnumber: 0
>>                 bindnetaddr: 192.168.100.5
>>                 broadcast: yes
>>                 mcastport: 5405
>>         }
>> }
>>
>> I have only tested on Linux platforms and the feature is somewhat
>> experimental.
>
> I have (the code, actually) and that's what I'm using.  Internally,
> when you set 'broadcast: yes' it takes the mcastport and strcat(3)'s
> that to "255.255.255.255:" and then passes that to bind(2), which
> fails on FreeBSD because 255.255.255.255 isn't handles specially and
> doesn't magically bind to 192.168.100.255 like it does on Linux.
>
> Still evaluating and have changed the code to use my local network via
> a patch (totemip.c or totemnet.c, iirc), but wanted to see if there
> are any correct solutions on the horizon.  -sc
>
>
>
>> Regards
>> -steve
>>
>>
>> On Sun, 2009-07-26 at 21:20 -0700, Sean Chittenden wrote:
>>> Resolving the broadcast address for FreeBSD.  Two possible solutions:
>>>
>>> 1) 255.255.255.255 doesn't receive any special handling by FreeBSD
>>> (and a handful of other OS'es, iirc) in terms of binding an
>>> interface's broadcast address.  Any thoughts on adding a broadcast
>>> config directive?
>>>
>>> 2) Other option is to resolve the correct broadcast in user space.
>>>
>>> Are there any patches kicking around that do either of these
>>> remedies?  -sc


I have some code in the 'old' cman that determines the correct broadcast 
address for an interface. I don't know off-hand if it's suitable for 
inclusion.

A simpler solution might be just to add a config option for broadcast 
address though.

Chrissie


More information about the Openais mailing list