From 9e93d2b335a061edad8f842bed82ea68bc5221fd Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 2 Dec 2021 10:59:43 -0800 Subject: [PATCH] ifnet: enable & fix if_debug build Fixes: ce40632a316c5 --- sys/net/if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/if.c b/sys/net/if.c index 85bf7e91fe1c..75e67c3dd8ba 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -36,6 +36,7 @@ #include "opt_bpf.h" #include "opt_inet6.h" #include "opt_inet.h" +#include "opt_ddb.h" #include #include @@ -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);