diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-12-07 07:34:46 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-12-07 07:34:46 +0300 |
commit | e40febfb9c99bc30a0dcb60e39b00beb656fdb0f (patch) | |
tree | 586a461392621a415a32d583b0ae8e1792669155 /net/ipv4/fib_frontend.c | |
parent | 7e6303567ce3ca506e4a2704e4baa86f1d8bde02 (diff) | |
parent | c0d999348e01df03e0a7f550351f3907fabbf611 (diff) | |
download | linux-e40febfb9c99bc30a0dcb60e39b00beb656fdb0f.tar.xz |
Merge branch 'ipv4-two-bug-fixes'
Ido Schimmel says:
====================
ipv4: Two small fixes for bugs in IPv4 routing code.
A variation of the second bug was reported by an FRR 5.0 (released
06/18) user as this version was setting a table ID of 0 for the
default VRF, unlike iproute2 and newer FRR versions.
The first bug was discovered while fixing the second.
Both bugs are not regressions (never worked) and are not critical
in my opinion, so the fixes can be applied to net-next, if desired.
No regressions in other tests:
# ./fib_tests.sh
...
Tests passed: 191
Tests failed: 0
====================
Link: https://lore.kernel.org/r/20221204075045.3780097-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index f361d3d56be2..b5736ef16ed2 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -841,6 +841,9 @@ static int rtm_to_fib_config(struct net *net, struct sk_buff *skb, return -EINVAL; } + if (!cfg->fc_table) + cfg->fc_table = RT_TABLE_MAIN; + return 0; errout: return err; |