netdev
[Top] [All Lists]

[Patch] DAD interval

To: netdev@xxxxxxxxxxx
Subject: [Patch] DAD interval
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxx>
Date: Tue, 01 May 2001 00:45:07 +0900
Cc: usagi-users@xxxxxxxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
Sorry for the delay...
We, USAGI Project, will provide you 3 or 4 patches (at least)...


This fixes interval between DAD packets.

USAGI Branch: bFIX_2_4_3-20010501

References:
[1] RFC2042

5.4.2.  Sending Neighbor Solicitation Messages
:
   To check an address, a node sends DupAddrDetectTransmits Neighbor
   Solicitations, each separated by RetransTimer milliseconds. The
   solicitation's Target Address is set to the address being checked,
:

[2] RFC2041

6.3.2.  Host Variables
:
        RetransTimer   The time between retransmissions of Neighbor
                       Solicitation messages to a neighbor when
                       resolving the address or when probing the
                       reachability of a neighbor.

                       Default: RETRANS_TIMER milliseconds
:
10.  PROTOCOL CONSTANTS
:
            RETRANS_TIMER                 1,000 milliseconds
:
Index: net/ipv6/addrconf.c
===================================================================
RCS file: /cvsroot/usagi/kernel/linux24/net/ipv6/addrconf.c,v
retrieving revision 1.1.1.4
retrieving revision 1.1.1.4.2.1
diff -u -r1.1.1.4 -r1.1.1.4.2.1
--- net/ipv6/addrconf.c 2001/02/22 12:04:36     1.1.1.4
+++ net/ipv6/addrconf.c 2001/04/30 15:21:42     1.1.1.4.2.1
@@ -22,6 +22,8 @@
  *     Andi Kleen                      :       kill doube kfree on module
  *                                             unload.
  *     Maciej W. Rozycki               :       FDDI support
+ *     yoshfuji@USAGI                  :       Fixed interval between DAD 
+ *                                             packets.
  */
 
 #include <linux/config.h>
@@ -1505,7 +1507,7 @@
        }
 
        ifp->probes--;
-       addrconf_mod_timer(ifp, AC_DAD, ifp->idev->cnf.rtr_solicit_interval);
+       addrconf_mod_timer(ifp, AC_DAD, ifp->idev->nd_parms->retrans_time);
        spin_unlock_bh(&ifp->lock);
 
        /* send a neighbour solicitation for our addr */

-- 
Hideaki YOSHIFUJI @ USAGI Project  <yoshfuji@xxxxxxxxxxxxxx>
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 

<Prev in Thread] Current Thread [Next in Thread>