summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2022-09-08 19:41:02 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2022-10-03 20:18:12 +0200
commit54430df953d6c590e5f446530a21d18277eeda56 (patch)
treea3c99a8596c3d864bef40d87ddf8f82f9e9b17e0 /nest/proto.c
parent605ff0a0ebdd32b1a98316737c3e65acb528a156 (diff)
BGP: Do not assume that all channels are struct bgp_channel
In principle, the channel list is a list of parent struct proto and can contain general structures of type struct channel, That is useful e.g. for adding MPLS channels to BGP.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 7074f73a..60a74964 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -829,6 +829,9 @@ static int reconfigure_type; /* Hack to propagate type info to channel_reconfig
int
channel_reconfigure(struct channel *c, struct channel_config *cf)
{
+ /* Touched by reconfiguration */
+ c->stale = 0;
+
/* FIXME: better handle these changes, also handle in_keep_filtered */
if ((c->table != cf->table->table) || (cf->ra_mode && (c->ra_mode != cf->ra_mode)))
return 0;