lkml.org 
[lkml]   [2023]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: ipv4:the same route is added repeatedly
Date
> diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
> index b5736ef16ed2..390f4be7f7be 100644
> --- a/net/ipv4/fib_frontend.c
> +++ b/net/ipv4/fib_frontend.c
> @@ -576,6 +576,9 @@ static int rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt,
> cfg->fc_scope = RT_SCOPE_UNIVERSE;
> }
>
> + if (!cfg->fc_table)
> + cfg->fc_table = RT_TABLE_MAIN;
> +
> if (cmd == SIOCDELRT)
> return 0;
Thanks for you reply.This patch works for me.
Can you submit a patch? Hope the problem will be fixed as soon as possible.

\
 
 \ /
  Last update: 2023-03-27 01:00    [W:0.077 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site