From 2bfc7a1e4187205c26850add8f9130ec1679b299 Mon Sep 17 00:00:00 2001 From: benno Date: Tue, 10 Jul 2018 12:38:50 +0000 Subject: [PATCH] the check "if (nc->rtableid)" is used as an indicator that we are dealing with network statements from within rdomain { } blocks. That needs to check against the rdomain we are running in instead. ok claudio@ --- usr.sbin/bgpd/rde.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 953f55a226d..ee43fabfa8c 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.388 2018/07/10 09:12:52 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.389 2018/07/10 12:38:50 benno Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -3534,7 +3534,7 @@ network_add(struct network_config *nc, int flagstatic) in_addr_t prefix4; u_int16_t i; - if (nc->rtableid) { + if (nc->rtableid != conf->default_tableid) { SIMPLEQ_FOREACH(rd, rdomains_l, entry) { if (rd->rtableid != nc->rtableid) continue; -- 2.20.1