diff --git a/lib/plist.c b/lib/plist.c index 17e692d13954..36af311e9e28 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -1108,8 +1108,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)