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

From: Ido Schimmel

Date: Fri Aug 07 2026 - 12:29:49 EST


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 <sigefriedhyy@xxxxxxxxx>

Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>