]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Do not try to check flowspec validity for piped routes
authorMaria Matejka <mq@ucw.cz>
Wed, 29 Jun 2022 10:51:07 +0000 (12:51 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 11 Jul 2022 14:07:09 +0000 (16:07 +0200)
nest/rt-table.c

index afa0ec5c898ba10eb0514e8b1fae3610713e3466..5adf63465437473717cc55583462403454f387fc 100644 (file)
@@ -2925,7 +2925,7 @@ static struct rte_storage *
 rt_flowspec_update_rte(rtable *tab, net *n, rte *r)
 {
 #ifdef CONFIG_BGP
-  if (rt_get_source_attr(r) != RTS_BGP)
+  if (r->generation || (rt_get_source_attr(r) != RTS_BGP))
     return NULL;
 
   struct bgp_channel *bc = (struct bgp_channel *) SKIP_BACK(struct channel, in_req, r->sender->req);