diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-12-18 08:48:43 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-18 08:48:43 +0200 | 
| commit | fb3b95b8b86b59889627665d72ca8d62f8366bcf (patch) | |
| tree | e46471d266f33cba015c9a2db8ace5d7fb796d53 | |
| parent | 5958f4448a6b0ccacefa0bdc6cead9bf712b84bf (diff) | |
| parent | 40e587b805206e95a45c8b113ff5cbfa78b80d74 (diff) | |
Merge pull request #17661 from FRRouting/mergify/bp/stable/8.5/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 17e692d139..36af311e9e 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)  | 
