{
int ret;
+ if (pentry->prefix.family != p->family)
+ return 0;
+
ret = prefix_match(&pentry->prefix, p);
if (!ret)
return 0;
if (prefix_same(&p, &pentry->prefix))
match = 1;
- if (type == longer_display)
- if (prefix_match(&p, &pentry->prefix))
+ if (type == longer_display) {
+ if ((p.family == pentry->prefix.family) &&
+ (prefix_match(&p, &pentry->prefix)))
match = 1;
+ }
if (match) {
vty_out(vty, " seq %u %s ", pentry->seq,
for (pentry = plist->head; pentry; pentry = pentry->next) {
if (prefix) {
- if (prefix_match(&pentry->prefix, &p))
+ if (pentry->prefix.family == p.family &&
+ prefix_match(&pentry->prefix, &p))
pentry->hitcnt = 0;
} else
pentry->hitcnt = 0;