On Tue, 2015-05-19 at 11:24 +0100, Stuart Henderson wrote:
> On 2015/05/19 10:10, Johan Ymerson wrote:
> 
> Yes I understand that, but if carp init was counted in "LINK_STATE_DOWN"
> then the metric would be 65535 which I think would still avoid the
> problem you're seeing, and would involve less special-casing in ospfd.
> 

Yes, that would also resolve the issue, but it is a bit illogical to
announce a network we cannot possibly route traffic to (due to hardware
problems).

I had a look at how BGPd handles this, and it only looks at
LINK_STATE_DOWN. It will also miss the case when
linkstate==LINK_STATE_UNKNOWN.
That brings us back to why the kernel's carp code doesn't initialize the
linkstate to something more useful than UNKNOWN.

/Johan

Reply via email to