diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-10-17 13:33:17 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-10-22 09:02:50 +0300 | 
| commit | 51b2dcd0075b10e868dfeb0427bd25ffd055fcc5 (patch) | |
| tree | 9e5a056ecc77dc3464853c2785a21b3b64b127ac /bgpd/bgp_ecommunity.c | |
| parent | b4e72bc1989ef1adf15f9d0949c809183c8fa672 (diff) | |
bgpd: Check transivity flag for node target extended community with CHECK_FLAG()
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_ecommunity.c')
| -rw-r--r-- | bgpd/bgp_ecommunity.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index e2292bb963..0443203fe0 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -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(  | 
