Skip to content

Commit

Permalink
Merge pull request FRRouting#17659 from FRRouting/mergify/bp/stable/9…
Browse files Browse the repository at this point in the history
….1/pr-17615

lib: Take ge/le into consideration when checking the prefix with the prefix-list (backport FRRouting#17615)
  • Loading branch information
Jafaral authored Dec 18, 2024
2 parents 81e8265 + 13c9ab8 commit ad14f7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,10 @@ static int vty_show_prefix_list_prefix(struct vty *vty, afi_t afi,
match = 0;

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;
}

if (type == longer_display) {
if ((p.family == pentry->prefix.family)
Expand Down

0 comments on commit ad14f7a

Please sign in to comment.