summaryrefslogtreecommitdiff
path: root/lib/plist.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-12-17 18:38:52 -0600
committerGitHub <noreply@github.com>2024-12-17 18:38:52 -0600
commitcbe7fc3a98b90a6454e867ab34c62d45ce091b6b (patch)
tree3c81a0f24fddbdfed659676dd99888052abebad8 /lib/plist.c
parent5af15b0f0f36b5e18cdd61adb8d75f7c2262ce43 (diff)
parent9df941700ac945ef731fb69c51b77fad1c0ad4c3 (diff)
Merge pull request #17658 from FRRouting/mergify/bp/stable/10.0/pr-17615
lib: Take ge/le into consideration when checking the prefix with the prefix-list (backport #17615)
Diffstat (limited to 'lib/plist.c')
-rw-r--r--lib/plist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c
index 618d92b549..3fc8e2a1ff 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -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)