From: Maria Matejka Date: Sun, 28 Jan 2024 13:57:52 +0000 (+0100) Subject: Merge commit 'v2.14-89-g74de3858' into thread-next X-Git-Tag: v3.0.0~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5afbe057eea3bb47c976daec3d813b189f2ca4d;p=thirdparty%2Fbird.git Merge commit 'v2.14-89-g74de3858' into thread-next --- b5afbe057eea3bb47c976daec3d813b189f2ca4d diff --cc proto/bgp/bgp.c index 1bce53dec,914935b92..dd47eb600 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@@ -709,23 -601,9 +706,9 @@@ bgp_conn_enter_established_state(struc const struct bgp_af_caps *loc = bgp_find_af_caps(local, c->afi); const struct bgp_af_caps *rem = bgp_find_af_caps(peer, c->afi); - /* Use default if capabilities were not announced */ - if (!local->length && (c->afi == BGP_AF_IPV4)) - loc = &basic_af_caps; - - if (!peer->length && (c->afi == BGP_AF_IPV4)) - rem = &basic_af_caps; - - /* Ignore AFIs that were not announced in multiprotocol capability */ - if (!loc || !loc->ready) - loc = &dummy_af_caps; - - if (!rem || !rem->ready) - rem = &dummy_af_caps; - int active = loc->ready && rem->ready; c->c.disabled = !active; - c->c.reloadable = p->route_refresh || c->cf->import_table; + c->c.reloadable = p->route_refresh || ((c->c.in_keep & RIK_PREFILTER) == RIK_PREFILTER); c->index = active ? num++ : 0;