]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Check transivity flag for node target extended community with CHECK_FLAG()
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 17 Oct 2024 10:33:17 +0000 (13:33 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 22 Oct 2024 06:02:50 +0000 (09:02 +0300)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_ecommunity.c

index e2292bb963d75a9ed9b2b34837271fc55d4daf93..0443203fe0ed262d7b5934d0ca946d30b5b913ac 100644 (file)
@@ -1419,7 +1419,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
                                                       pnt, len);
                        else
                                unk_ecom = true;
-               } else if (type == ECOMMUNITY_ENCODE_IP_NON_TRANS) {
+               } else if (CHECK_FLAG(type, ECOMMUNITY_ENCODE_IP_NON_TRANS)) {
                        sub_type = *pnt++;
                        if (sub_type == ECOMMUNITY_NODE_TARGET)
                                ecommunity_node_target_str(