summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2018-07-10 12:40:42 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2018-07-10 12:40:42 +0000
commitecea0bb1acae3f3ab999694f9c7b951312603290 (patch)
treeb294a1dbca0912b85b0931ae65ce5b9c55b608de /usr.sbin/bgpd/bgpd.c
parent198639a8c8d97f977b858a0e4dace404065fc7ca (diff)
You can run multiple copies of bgpd in seperate rdomains.
However, the processes will see each others route messages. Some structures are not initialized correctly for that, causing at least useless log messages. This is an attempt to use the default_tableid where its needed. A few hardcoded uses of rtable 0 remain. ok claudio@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 44ba0708b62..03dec715288 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.192 2018/02/10 01:24:28 benno Exp $ */
+/* $OpenBSD: bgpd.c,v 1.193 2018/07/10 12:40:41 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -500,7 +500,7 @@ reconfigure(char *conffile, struct bgpd_config *conf, struct peer **peer_l)
}
/* networks go via kroute to the RDE */
- if (kr_net_reload(0, &conf->networks))
+ if (kr_net_reload(conf->default_tableid, &conf->networks))
return (-1);
/* prefixsets for filters in the RDE */