Re: [PATCH net-next] ipv4/fib: send RTM_DELROUTE notify when flush fib

Thomas Haller
2023-08-02T09:06:58Z

On Sun, 2023-07-23 at 10:38 +0300, Ido Schimmel wrote:
> On Fri, Jul 21, 2023 at 01:46:13PM +0800, Hangbin Liu wrote:
>
>
> I assume NetworkManager already knows how to delete routes given
> RTM_DELLINK events. Can't it be taught to react to RTM_DELADDR events
> as
> well? Then this functionality will always work, regardless of the
> kernel
> version being used.
>

Hi,

NetworkManager will already request a full dump of all routes, when an
address gets deleted.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1dff0156278594ab171b59885396cf95aff2af7f/src/libnm-platform/nm-linux-platform.c#L7437

Thomas