• Flavio Leitner's avatar
    ipv6: send Change Status Report after DAD is completed · 6a7cc418
    Flavio Leitner authored
    The RFC 3810 defines two type of messages for multicast
    listeners. The "Current State Report" message, as the name
    implies, refreshes the *current* state to the querier.
    Since the querier sends Query messages periodically, there
    is no need to retransmit the report.
    
    On the other hand, any change should be reported immediately
    using "State Change Report" messages. Since it's an event
    triggered by a change and that it can be affected by packet
    loss, the rfc states it should be retransmitted [RobVar] times
    to make sure routers will receive timely.
    
    Currently, we are sending "Current State Reports" after
    DAD is completed.  Before that, we send messages using
    unspecified address (::) which should be silently discarded
    by routers.
    
    This patch changes to send "State Change Report" messages
    after DAD is completed fixing the behavior to be RFC compliant
    and also to pass TAHI IPv6 testsuite.
    Signed-off-by: default avatarFlavio Leitner <fbl@redhat.com>
    Acked-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6a7cc418
mcast.c 68.3 KB