Bug 271375 - defaultrouter_fibX in rc.conf does not work.
Summary: defaultrouter_fibX in rc.conf does not work.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-rc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 04:36 UTC by shino@fornext.jp
Modified: 2024-02-19 05:49 UTC (History)
4 users (show)

See Also:
imp: mfc-stable13+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shino@fornext.jp 2023-05-12 04:36:42 UTC
route__default_fibX is not set correctly due to a variable name typo.

--- routing.orig        2023-05-12 13:14:59.532175000 +0900
+++ routing     2023-05-12 13:16:00.291891000 +0900
@@ -171,7 +171,7 @@
                                ;;
                        *)
                                static_routes="${static_routes} _default_fib${_fibnum}"
-                               eval route__default_fib${fibnum}="'default ${_fib_gw} -fib ${_fibnum}'"
+                               eval route__default_fib${_fibnum}="'default ${_fib_gw} -fib ${_fibnum}'"
                                ;;
                        esac
                done
Comment 1 topical 2023-06-24 12:38:40 UTC
This bug is known should have already been fixed, see

https://reviews.freebsd.org/D37685

Is there anyone having an idea why it didn't make its way into official sources?
Comment 2 Oleg Streejak 2023-11-03 21:52:42 UTC
and it's still not fixed - had to trace and fix it manually

FreeBSD 13.2-RELEASE-p4 GENERIC amd64 (updated by freebsd-update)
Comment 3 Warner Losh freebsd_committer freebsd_triage 2024-02-19 05:49:43 UTC
It's been MFC'd to 13. It will be in 13.3, but not in 13.2