Hi Steve,

Maybe you could use OR (||) instead?  By the look of the detection
macro, it's expecting all three to occur at once.

I'm no guru on ifstated, but this seems logical to me.

HTH

On Thu, Oct 1, 2009 at 10:44 AM, Steven Surdock
<[email protected]> wrote:
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On Behalf
> Of
>> Stuart Henderson
>> Sent: Tuesday, September 29, 2009 5:05 PM
>> To: Laurent CARON
>> Cc: OpenBSD
>> Subject: Re: ifstated with carp0
>>
> ...
>> yep, using ifconfig like that isn't really very clean -
>> does this help at all?
>>
>> Index: ifstated.c
>> ===================================================================
> ...
>
> This was a no-go for me on 4.5-stable.  The effect was the same, no
> change on a carp transition.  Here are my detection macros:
>
> primary = "carp0.link.up && carp10.link.up && carp11.link.up"
> backup = "carp0.link.down && carp10.link.down && carp11.link.down"
>
> So I tried a simpler one,
>
> primary = "carp0.link.up"
> backup = "carp0.link.down "
>
> Carp transition detection worked (with the new code AND the old code).
>
> -Steve S.
>
>



--
Aaron Mason - Programmer, open source addict
- Oh, why does everything I whip leave me?

Reply via email to