If we received a non-transitive extended community (in this case it was
extended link-bandwidth), we treated it as unknown because we didn't check for
the transitive flag correctly.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
"FS:marking %u", *(pnt + 5));
} else
unk_ecom = true;
- } else if (type == ECOMMUNITY_ENCODE_AS_NON_TRANS) {
+ } else if (CHECK_FLAG(type, ECOMMUNITY_ENCODE_AS_NON_TRANS) ||
+ CHECK_FLAG(type, ECOMMUNITY_FLAG_NON_TRANSITIVE)) {
sub_type = *pnt++;
if (sub_type == ECOMMUNITY_LINK_BANDWIDTH)
ecommunity_lb_str(encbuf, sizeof(encbuf), pnt,