mac_ddb: Make db_show_vnet_valid() handle !VIMAGE

Reported by:	kib
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
This commit is contained in:
Allan Jude 2022-07-21 13:58:05 +00:00
parent f39f827222
commit 3810b37903

View File

@ -196,6 +196,7 @@ db_show_rman_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
static int
db_show_vnet_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
{
#ifdef VIMAGE
VNET_ITERATOR_DECL(vnet);
if (!have_addr)
@ -207,6 +208,9 @@ db_show_vnet_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
}
return (EACCES);
#else
return (EOPNOTSUPP);
#endif
}
#endif