Thanks, Bjorn for the response.
The R flag is set in the NA as the sender is a router.
Dheeraj
On Fri, Jun 24, 2022 at 4:08 AM Bjørn Mork <
[email protected]> wrote:
Dheeraj Kandula <[email protected]> writes:
Thanks Povl.
In the "ip neighbor" output, I see entries listed with "router". Maybe it is a RA Default router learnt entry.
Nope. That's the 'router' flag in the neigbour advertisment. Lots of systems will set this flag without sending RAs. Linux will set it if forwarding is enable on the interface where the NA is going out.
From net/ipv6/addrconf.c:
/* send unsolicited NA if enabled */
if (send_na &&
(ifp->idev->cnf.ndisc_notify ||
dev_net(dev)->ipv6.devconf_all->ndisc_notify)) {
ndisc_send_na(dev, &in6addr_linklocal_allnodes, &ifp->addr,
/*router=*/ !!ifp->idev->cnf.forwarding,
/*solicited=*/ false, /*override=*/ true,
/*inc_opt=*/ true);
}
Bjørn
<div dir="ltr"><div>Thanks, Bjorn for the response. <br></div><div><br></div><div>The R flag is set in the NA as the sender is a router. <br></div><div><br></div><div>Dheeraj<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">
On Fri, Jun 24, 2022 at 4:08 AM Bjørn Mork <<a href="mailto:
[email protected]">
[email protected]</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dheeraj Kandula &
lt;<a href="mailto:
[email protected]" target="_blank">
[email protected]</a>> writes:<br>
> Thanks Povl.<br>
><br>
> In the "ip neighbor" output, I see entries listed with "router". Maybe it<br>
> is a RA Default router learnt entry.<br>
Nope. That's the 'router' flag in the neigbour advertisment. Lots of<br>
systems will set this flag without sending RAs. Linux will set it if<br> forwarding is enable on the interface where the NA is going out.<br>
>From net/ipv6/addrconf.c:<br>
/* send unsolicited NA if enabled */<br>
if (send_na &&<br>
(ifp->idev->cnf.ndisc_notify ||<br>
dev_net(dev)->ipv6.devconf_all->ndisc_notify)) {<br> ndisc_send_na(dev, &in6addr_linklocal_allnodes, &ifp->addr,<br>
/*router=*/ !!ifp->idev->cnf.forwarding,<br>
/*solicited=*/ false, /*override=*/ true,<br>
/*inc_opt=*/ true);<br>
}<br>
Bjørn<br>
</blockquote></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)