0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Netlink: Change default kernel metric to 32

This avoids collisions with non-BIRD routes in kernel tables.
This commit is contained in:
Ondrej Zajicek (work) 2017-03-29 16:10:00 +02:00
parent ed6100441e
commit bff21441dd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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