diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-12-17 18:39:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-17 18:39:06 -0600 |
| commit | ad14f7a47ddf771f088f96a7fe362265aa16b211 (patch) | |
| tree | 3aa6309b9aa0b2313b46d2b72ae991bb06b86056 | |
| parent | 81e82659695b6496a935a9064294657ceb62c204 (diff) | |
| parent | 13c9ab80cf6871eea48f0bbf40d4d8a2fcc6999b (diff) | |
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)
| -rw-r--r-- | lib/plist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c index 2f5827cf43..5f52e27d18 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) |
