Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/routemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2602,7 +2602,11 @@ route_map_result_t route_map_apply_ext(struct route_map *map,
GETRUSAGE(&mbefore);
ibefore = mbefore;

if (prefix->family == AF_EVPN) {
if (prefix->family != AF_INET && prefix->family != AF_INET6) {
/* LPM tries are IPv4/IPv6-only; non-IP families (AF_EVPN,
* AF_FLOWSPEC, AF_UNSPEC) must walk all clauses or
* IPv4-restricted matches get silently bypassed.
*/
index = map->head;
} else {
skip_match_clause = true;
Expand Down
Loading