-/* $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>
}
/* 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 */
-/* $OpenBSD: bgpd.h,v 1.320 2018/06/29 11:45:50 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.321 2018/07/10 12:40:41 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#define PEERFLAG_LOG_UPDATES 0x02
enum network_type {
- NETWORK_DEFAULT,
+ NETWORK_DEFAULT, /* from network statements */
NETWORK_STATIC,
NETWORK_CONNECTED,
NETWORK_RTLABEL,
-/* $OpenBSD: parse.y,v 1.326 2018/07/10 09:55:14 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.327 2018/07/10 12:40:41 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
netconf = &conf->networks;
- /* the Adj-RIB-In/Out have no fib so no need to set the tableid */
- add_rib("Adj-RIB-In", 0, F_RIB_NOFIB | F_RIB_NOEVALUATE);
- add_rib("Adj-RIB-Out", 0, F_RIB_NOFIB | F_RIB_NOEVALUATE);
+ add_rib("Adj-RIB-In", conf->default_tableid,
+ F_RIB_NOFIB | F_RIB_NOEVALUATE);
+ add_rib("Adj-RIB-Out", conf->default_tableid,
+ F_RIB_NOFIB | F_RIB_NOEVALUATE);
add_rib("Loc-RIB", conf->default_tableid, F_RIB_LOCAL);
if ((file = pushfile(filename, 1)) == NULL) {
free(rr);
return (-1);
}
- rr->rtableid = rtableid;
}
+ rr->rtableid = rtableid;
SIMPLEQ_INSERT_TAIL(&ribnames, rr, entry);
return (0);
}