Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Jun 26, 2025

…to bad type match

The ecommunity_non_transitive() helper incorrectly used CHECK_FLAG() to test against ECOMMUNITY_ENCODE_IP_NON_TRANS (0x41), which is a full type code, not a bitmask. As a result, type 0x03 (transitive opaque), used for encapsulation (e.g., VXLAN), was mistakenly matched and stripped during re-announcement.

This patch replaces the incorrect CHECK_FLAG() with a direct equality check.

Bug caused stripping of valid VXLAN encapsulation communities (type 0x03) on reflected UPDATEs.

Signed-off-by: Nick Bouliane [email protected]

That should fix the bug mentioned here: https://blog.ipspace.net/2025/06/evpn-route-attributes-matter/


This is an automatic backport of pull request #19065 done by Mergify.

…to bad type match

The ecommunity_non_transitive() helper incorrectly used CHECK_FLAG()
to test against ECOMMUNITY_ENCODE_IP_NON_TRANS (0x41), which is a full
type code, not a bitmask. As a result, type 0x03 (transitive opaque),
used for encapsulation (e.g., VXLAN), was mistakenly matched and stripped
during re-announcement.

This patch replaces the incorrect CHECK_FLAG() with a direct equality check.

Bug caused stripping of valid VXLAN encapsulation communities (type 0x03)
on reflected UPDATEs.

Signed-off-by: Nick Bouliane <[email protected]>
(cherry picked from commit 954e662)
@frrbot frrbot bot added the bgp label Jun 26, 2025
@Jafaral Jafaral merged commit 211c25c into dev/10.4 Jun 27, 2025
17 checks passed
@Jafaral Jafaral deleted the mergify/bp/dev/10.4/pr-19065 branch July 31, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants