Re: [PATCH net-next v5 03/10] ipv6: record the reason for kernel-initiated route deletions

Ido Schimmel <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.network
Message-ID <20260807162243.GD2186508@shredder>
On Tue, Aug 04, 2026 at 10:47:07AM +0900, Yuyang Huang wrote:
> Record why the kernel deletes an IPv6 route on its own:
> 
> - RT_DEL_REASON_EXPIRED for routes reaped by the FIB6 garbage
>   collector after their RTF_EXPIRES lifetime ran out.
> - RT_DEL_REASON_RA_WITHDRAWN for default routes, prefix routes and
>   RFC 4191 route information routes withdrawn by a zero-lifetime
>   Router Advertisement.
> 
> Deleting a default route because its metric changed is not a
> withdrawal, so it keeps RT_DEL_REASON_UNSPEC.
> 
> Signed-off-by: Yuyang Huang <[email protected]>

Reviewed-by: Ido Schimmel <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.