Help with Values in code
Dheeraj Kandula <[email protected]> Tue, 28 Jun 2022 15:59:55 -0400
| Newsgroups | gmane.linux.debian.devel.ipv6 |
|---|---|
| Message-ID | <CA+qNgxRBfjpNgOD7h2OY61TS6A3XPkRHhU03kyQUCqDZ_HXieg@mail.gmail.com> |
--000000000000abfc0c05e2877be4
Content-Type: text/plain; charset="UTF-8"
Hi All,
I am trying to figure out how often the DAD NS packets are sent when
more than 1 NS has to be sent for DAD. dad_transmits denotes the number of
NS that will be sent for DAD.
The code is as given below:
addrconf_mod_dad_work
<https://elixir.bootlin.com/linux/latest/C/ident/addrconf_mod_dad_work>(ifp
<https://elixir.bootlin.com/linux/latest/C/ident/ifp>,
max <https://elixir.bootlin.com/linux/latest/C/ident/max>(NEIGH_VAR
<https://elixir.bootlin.com/linux/latest/C/ident/NEIGH_VAR>(ifp
<https://elixir.bootlin.com/linux/latest/C/ident/ifp>->idev
<https://elixir.bootlin.com/linux/latest/C/ident/idev>->nd_parms
<https://elixir.bootlin.com/linux/latest/C/ident/nd_parms>,
RETRANS_TIME),
HZ <https://elixir.bootlin.com/linux/latest/C/ident/HZ>/100));
I figured out that NEIGH_VAR_RETRANS_TIME is HZ.
Is the NS sent after every 1 second.
Dheeraj
--000000000000abfc0c05e2877be4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi All,</div><div>=C2=A0=C2=A0=C2=A0 I am trying to f=
igure out how often the DAD NS packets are sent when more than 1 NS has to =
be sent for DAD. dad_transmits denotes the number of NS that will be sent f=
or DAD.<br></div><div><br></div><div>The code is as given below:</div><div>=
<br></div><div><pre><span class=3D"gmail-n"><a href=3D"https://elixir.bootl=
in.com/linux/latest/C/ident/addrconf_mod_dad_work">addrconf_mod_dad_work</a=
></span><span class=3D"gmail-p">(</span><span class=3D"gmail-n"><a href=3D"=
https://elixir.bootlin.com/linux/latest/C/ident/ifp">ifp</a></span><span cl=
ass=3D"gmail-p">,</span>
<span class=3D"gmail-n"><a href=3D"https://elixir.bootlin.com/linux/la=
test/C/ident/max">max</a></span><span class=3D"gmail-p">(</span><span class=
=3D"gmail-n"><a href=3D"https://elixir.bootlin.com/linux/latest/C/ident/NEI=
GH_VAR">NEIGH_VAR</a></span><span class=3D"gmail-p">(</span><span class=3D"=
gmail-n"><a href=3D"https://elixir.bootlin.com/linux/latest/C/ident/ifp">if=
p</a></span><span class=3D"gmail-o">-></span><span class=3D"gmail-n"><a =
href=3D"https://elixir.bootlin.com/linux/latest/C/ident/idev">idev</a></spa=
n><span class=3D"gmail-o">-></span><span class=3D"gmail-n"><a href=3D"ht=
tps://elixir.bootlin.com/linux/latest/C/ident/nd_parms">nd_parms</a></span>=
<span class=3D"gmail-p">,</span> <span class=3D"gmail-n">RETRANS_TIME</span=
><span class=3D"gmail-p">),</span>
<span class=3D"gmail-n"><a href=3D"https://elixir.bootlin.com/linux/l=
atest/C/ident/HZ">HZ</a></span><span class=3D"gmail-o">/</span><span class=
=3D"gmail-mi">100</span><span class=3D"gmail-p">));<br><br></span></pre><pr=
e><span class=3D"gmail-p">I figured out that NEIGH_VAR_RETRANS_TIME is HZ.<=
br><br></span></pre><pre><span class=3D"gmail-p">Is the NS sent after every=
1 second.<br><br></span></pre><pre><span class=3D"gmail-p">Dheeraj<br></sp=
an></pre></div></div>
--000000000000abfc0c05e2877be4--