From: claudio Date: Mon, 5 Feb 2018 01:42:40 +0000 (+0000) Subject: Add a comment why it is OK to set the tableid to 0 for Adj-RIB-In/Out. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c9f29c79a4b5245c8c37ca02b137f074ab90ed43;p=openbsd Add a comment why it is OK to set the tableid to 0 for Adj-RIB-In/Out. Requested by henning@ --- diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index a1eacce3e40..f34df1da41b 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.317 2018/02/04 05:08:16 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.318 2018/02/05 01:42:40 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -2824,6 +2824,7 @@ parse_config(char *filename, struct bgpd_config *xconf, struct peer **xpeers) 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("Loc-RIB", conf->default_tableid, F_RIB_LOCAL);