mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
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:
parent
f39f827222
commit
3810b37903
@ -196,6 +196,7 @@ db_show_rman_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
|
|||||||
static int
|
static int
|
||||||
db_show_vnet_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
|
db_show_vnet_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
|
||||||
{
|
{
|
||||||
|
#ifdef VIMAGE
|
||||||
VNET_ITERATOR_DECL(vnet);
|
VNET_ITERATOR_DECL(vnet);
|
||||||
|
|
||||||
if (!have_addr)
|
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);
|
return (EACCES);
|
||||||
|
#else
|
||||||
|
return (EOPNOTSUPP);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user