diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-12-17 18:38:52 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-17 18:38:52 -0600 |
| commit | cbe7fc3a98b90a6454e867ab34c62d45ce091b6b (patch) | |
| tree | 3c81a0f24fddbdfed659676dd99888052abebad8 | |
| parent | 5af15b0f0f36b5e18cdd61adb8d75f7c2262ce43 (diff) | |
| parent | 9df941700ac945ef731fb69c51b77fad1c0ad4c3 (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)
| -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 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) |
