Commit bff21441 authored by Ondrej Zajicek (work)'s avatar Ondrej Zajicek (work)
Browse files

Netlink: Change default kernel metric to 32

This avoids collisions with non-BIRD routes in kernel tables.
parent ed610044
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2698,7 +2698,7 @@ limitations can be overcome using another routing table and the pipe protocol.
	routes from other sources (e.g. kernel device routes). Metric 0 has a
	special meaning of undefined metric, in which either OS default is used,
	or per-route metric can be set using <cf/krt_metric/ attribute. Default:
	0 (undefined).
	32.

	<tag><label id="krt-graceful-restart">graceful restart <m/switch/</tag>
	Participate in graceful restart recovery. If this option is enabled and
+1 −1
Original line number Diff line number Diff line
@@ -1935,7 +1935,7 @@ void
krt_sys_init_config(struct krt_config *cf)
{
  cf->sys.table_id = RT_TABLE_MAIN;
  cf->sys.metric = 0;
  cf->sys.metric = 32;
}

void