git: 9e93d2b335a0 - main - ifnet: enable & fix if_debug build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Dec 2021 19:07:12 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=9e93d2b335a061edad8f842bed82ea68bc5221fd
commit 9e93d2b335a061edad8f842bed82ea68bc5221fd
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2021-12-02 18:59:43 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
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);