The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9e93d2b335a061edad8f842bed82ea68bc5221fd

commit 9e93d2b335a061edad8f842bed82ea68bc5221fd
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2021-12-02 18:59:43 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2021-12-02 18:59:43 +0000

    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 <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);

Reply via email to