Messages in this thread | | | From | gaoxingwang <> | Subject | Re: ipv4:the same route is added repeatedly | Date | Wed, 15 Mar 2023 15:43:10 +0800 |
| |
> 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.
| |