]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Netlink: Change default kernel metric to 32
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 29 Mar 2017 14:10:00 +0000 (16:10 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 29 Mar 2017 14:10:00 +0000 (16:10 +0200)
This avoids collisions with non-BIRD routes in kernel tables.

doc/bird.sgml
sysdep/linux/netlink.c

index d2d03314c33ab2955c522d5de1d0009e97d7cf6b..e2e8964afe3a89141a5e8c500eb21edfe8134563 100644 (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
index 654dc4d16d9d31b0f96e5ef27fe8c391c7b11e84..e20512f5c326f3d69667944f39f485cc1ff12a34 100644 (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