This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c76d80a7183 !net/icmpv6: Default the Neighbor Solicitation interval to 
RetransTimer.
c76d80a7183 is described below

commit c76d80a7183f8c2626c20e3b5817e504b0e8e8cd
Author: raiden00pl <[email protected]>
AuthorDate: Sun Oct 25 12:37:14 2026 +0100

    !net/icmpv6: Default the Neighbor Solicitation interval to RetransTimer.
    
    icmpv6_neighbor() retransmitted the Neighbor Solicitation every
    CONFIG_ICMPv6_NEIGHBOR_DELAYMSEC, 20 ms by default.  Default it to
    RETRANS_TIMER (1000 ms).
    
    RFC 4861, 7.2.2: "Retransmissions MUST be rate-limited to at most one
    solicitation per neighbor every RetransTimer milliseconds."; section 10:
    "RETRANS_TIMER 1,000 milliseconds".
    https://www.rfc-editor.org/rfc/rfc4861#section-7.2.2
    
    BREAKING CHANGE: with the default 5 tries, resolving an unreachable
    IPv6 neighbor and the duplicate address check of address
    autoconfiguration now take up to 5 s instead of 100 ms.  Quick fix:
    set CONFIG_ICMPv6_NEIGHBOR_DELAYMSEC=20 to restore the old timing.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 net/icmpv6/Kconfig | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/net/icmpv6/Kconfig b/net/icmpv6/Kconfig
index c7ae060bc1a..71a460bf68d 100644
--- a/net/icmpv6/Kconfig
+++ b/net/icmpv6/Kconfig
@@ -70,14 +70,13 @@ config ICMPv6_NEIGHBOR_MAXTRIES
 
 config ICMPv6_NEIGHBOR_DELAYMSEC
        int "ICMPv6 neighbor re-solicit delay"
-       default 20
+       default 1000
        ---help---
                Wait this number of milliseconds after sending the Neighbor
                Solicitation before checking if the IPv6 address mapping is 
present
-               in the Neighbor Table.  This time should be related to the 
maximum
-               round trip time on the network since it is basically the time 
from
-               when an Neighbor Solicitation is sent until the Neighbor
-               Advertisement is received.
+               in the Neighbor Table, and before the next Neighbor 
Solicitation.
+               RFC 4861 limits the retransmissions to one per RetransTimer, 
which
+               defaults to RETRANS_TIMER (1000 ms).
 
 endif # NET_ICMPv6_NEIGHBOR
 

Reply via email to