diff options
author | Maria Matejka <mq@ucw.cz> | 2020-02-10 15:01:36 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-10-13 19:09:04 +0200 |
commit | ddd89ba12d03d648e9bb820c6a4f48b1f96f15d2 (patch) | |
tree | db2b51f6860d3c7559bc7a4a2742d87d201e222f /proto/pipe | |
parent | e42eedb912428aa9af450b0426e53b0a7004dfb1 (diff) |
BGP: Moved the suppressed and stale flags to pflags
Diffstat (limited to 'proto/pipe')
-rw-r--r-- | proto/pipe/pipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c index de86b62b..d85a281a 100644 --- a/proto/pipe/pipe.c +++ b/proto/pipe/pipe.c @@ -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 |