1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

ifnet: enable & fix if_debug build

Fixes:	ce40632a31
This commit is contained in:
Gleb Smirnoff 2021-12-02 10:59:43 -08:00
parent 2e27230ff9
commit 9e93d2b335

View File

@ -36,6 +36,7 @@
#include "opt_bpf.h"
#include "opt_inet6.h"
#include "opt_inet.h"
#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/capsicum.h>
@ -4668,7 +4669,7 @@ DB_SHOW_ALL_COMMAND(ifnets, db_show_all_ifnets)
db_printf("vnet=%p\n", curvnet);
#endif
for (idx = 1; idx <= V_if_index; idx++) {
ifp = V_ifindex_table[idx].ife_ifnet;
ifp = V_ifindex_table[idx];
if (ifp == NULL)
continue;
db_printf( "%20s ifp=%p\n", ifp->if_xname, ifp);