summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/config.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2017-05-28 15:16:34 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2017-05-28 15:16:34 +0000
commitff32495dd086c39ff244188fce0e72948860adc6 (patch)
tree7d460745e4bd91dc5c928d32271e8c1e26e369ec /usr.sbin/bgpd/config.c
parented7498b974053da920925eb008a53015769f3c43 (diff)
so far, bgpd was hardcoded to use rtable 0 for nexthop verification.
instead, use the rtable bgpd was started in (route -T <n> exec / rc.d daemon_rtable) for nexthop verification and as default Adj-RIB-In and Loc-RIB. This allows multiple bgpds in different rdomains on the same machine - bgp router virtualization if you like buzzwords. initial version written under contract more than a year ago, it took us a while to wrap our brains around the bgpd <-> rdomain interactions - 1) RIBs, 2) nexthop verification and 3) tcp sockets. ok & input phessler claudio benno
Diffstat (limited to 'usr.sbin/bgpd/config.c')
-rw-r--r--usr.sbin/bgpd/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c
index adbfaf380ee..8d0f34e2653 100644
--- a/usr.sbin/bgpd/config.c
+++ b/usr.sbin/bgpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.65 2017/01/24 04:22:42 benno Exp $ */
+/* $OpenBSD: config.c,v 1.66 2017/05/28 15:16:33 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -52,6 +52,7 @@ new_config(void)
conf->min_holdtime = MIN_HOLDTIME;
conf->bgpid = get_bgpid();
conf->fib_priority = RTP_BGP;
+ conf->default_tableid = getrtable();
if ((conf->csock = strdup(SOCKET_NAME)) == NULL)
fatal(NULL);