Merge pull request #17659 from FRRouting/mergify/bp/stable/9.1/pr-17615

lib: Take ge/le into consideration when checking the prefix with the prefix-list (backport #17615)
This commit is contained in:
Jafar Al-Gharaibeh 2024-12-17 18:39:06 -06:00 committed by GitHub
commit ad14f7a47d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1140,8 +1140,10 @@ static int vty_show_prefix_list_prefix(struct vty *vty, afi_t afi,
match = 0; match = 0;
if (type == normal_display || type == first_match_display) if (type == normal_display || type == first_match_display)
if (prefix_same(&p, &pentry->prefix)) if (prefix_list_entry_match(pentry, &p, false)) {
pentry->hitcnt++;
match = 1; match = 1;
}
if (type == longer_display) { if (type == longer_display) {
if ((p.family == pentry->prefix.family) if ((p.family == pentry->prefix.family)