summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-03-29 16:10:00 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-03-29 16:10:00 +0200
commitbff21441dd9b8cd526680e9977f8eceb9912ca6f (patch)
tree6a38f7790fd48a7ac4e83d6f38f4299cb816cb16
parented6100441ec6e95797d3692925b85c627a4e8df1 (diff)
Netlink: Change default kernel metric to 32
This avoids collisions with non-BIRD routes in kernel tables.
-rw-r--r--doc/bird.sgml2
-rw-r--r--sysdep/linux/netlink.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml
index d2d03314..e2e8964a 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -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
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index 654dc4d1..e20512f5 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -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