netdev-owner@vger.kernel.org wrote on 07/26/2012 10:57:43 AM:
RFC 3810 says that the timeout should be computed as
Robustness_Variable * Query_Interval + Query_Response_Interval. This
suggests that the line where switchback is computed should be changed
to something like
switchback = (idev->mc_qrv * 125 * HZ) + max_delay;
where 125 is the default Query_Interval in seconds
Dragos,
I agree that it's too short, but this shouldn't be using the
default value, but rather the actual value of the querier, if one is
present,
as calculated from a QQIC in a query. I suggest saving the QQI,
decoded, in a new "idev->mc_qqi" which should be initialized to 125
but updated by received queries and then using:
switchback = idev->mc_qrv * idev->mc_qqi * HZ + max_delay;
+-DLS