Skip to content

Commit 241073f

Browse files
authored
Merge pull request #17660 from FRRouting/mergify/bp/stable/9.0/pr-17615
lib: Take ge/le into consideration when checking the prefix with the prefix-list (backport #17615)
2 parents 00352b9 + 98426ce commit 241073f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/plist.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,10 @@ static int vty_show_prefix_list_prefix(struct vty *vty, afi_t afi,
11401140
match = 0;
11411141

11421142
if (type == normal_display || type == first_match_display)
1143-
if (prefix_same(&p, &pentry->prefix))
1143+
if (prefix_list_entry_match(pentry, &p, false)) {
1144+
pentry->hitcnt++;
11441145
match = 1;
1146+
}
11451147

11461148
if (type == longer_display) {
11471149
if ((p.family == pentry->prefix.family)

0 commit comments

Comments
 (0)