Page MenuHomeFreeBSD

D46204.id141636.diff
No OneTemporary

D46204.id141636.diff

diff --git a/sys/net/route/route_tables.c b/sys/net/route/route_tables.c
--- a/sys/net/route/route_tables.c
+++ b/sys/net/route/route_tables.c
@@ -218,6 +218,7 @@
static void
grow_rtables(uint32_t num_tables)
{
+ static bool printedonce;
struct domain *dom;
struct rib_head **prnh, *rh;
struct rib_head **new_rt_tables, **old_rt_tables;
@@ -231,10 +232,12 @@
new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *),
M_RTABLE, M_WAITOK | M_ZERO);
- if ((num_tables > 1) && (V_rt_add_addr_allfibs == 0))
+ if (num_tables > 1 && V_rt_add_addr_allfibs == 0 && !printedonce) {
+ printedonce = true;
printf("WARNING: Adding ifaddrs to all fibs has been turned off "
"by default. Consider tuning %s if needed\n",
"net.add_addr_allfibs");
+ }
#ifdef FIB_ALGO
fib_grow_rtables(num_tables);

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 8, 4:08 PM (4 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28471037
Default Alt Text
D46204.id141636.diff (832 B)

Event Timeline