1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

BGP: Moved the suppressed and stale flags to pflags

This commit is contained in:
Maria Matejka
2020-02-10 15:01:36 +01:00
parent e42eedb912
commit ddd89ba12d
5 changed files with 39 additions and 32 deletions

View File

@@ -43,6 +43,10 @@
#include "pipe.h"
#ifdef CONFIG_BGP
#include "proto/bgp/bgp.h"
#endif
static void
pipe_rt_notify(struct proto *P, struct channel *src_ch, net *n, rte *new, rte *old)
{
@@ -82,7 +86,7 @@ pipe_rt_notify(struct proto *P, struct channel *src_ch, net *n, rte *new, rte *o
#ifdef CONFIG_BGP
/* Hack to cleanup cached value */
if (e->src->proto->proto == &proto_bgp)
e->u.bgp.stale = -1;
e->pflags &= ~(BGP_REF_STALE | BGP_REF_NOT_STALE);
#endif
}
else