From nobody Thu Dec 02 19:07:12 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EBAEC18AE9B2; Thu, 2 Dec 2021 19:07:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4lnX4763z4R7m; Thu, 2 Dec 2021 19:07:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 67D5522D00; Thu, 2 Dec 2021 19:07:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B2J7CNt095819; Thu, 2 Dec 2021 19:07:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B2J7Ca6095818; Thu, 2 Dec 2021 19:07:12 GMT (envelope-from git) Date: Thu, 2 Dec 2021 19:07:12 GMT Message-Id: <202112021907.1B2J7Ca6095818@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 9e93d2b335a0 - main - ifnet: enable & fix if_debug build List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9e93d2b335a061edad8f842bed82ea68bc5221fd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638472032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0ezh0KwVoncZqZN4xOG1sy+EqeEcsXjxnq/uvqR2230=; b=AF6G7TjY6wdiqDDw0O4QKCqOyzPmqw1LphIPtsUO+9ezl4HU/uy/D+sJJFYH0d0Out0qB+ QcYi/Jg9l7zZ6xaWhgiP3DyW5myhPnC0vTX7igivm3HIE/MylS6IsbwwYVpAu6iGWr/kuj CQuVDtW53qLg0bVE1grb0qEmsA+RzkTJGg0c65O/AuJgeJZMm1NLrJzNQLeyG4Fz0aCghW 07xKjiMdkxzGxEZ9X06lUznNX3P0OhSKnI/jamHvbMzEzbnyyl8NGEzqJ0f2lFllaJyviB Pb9E5U0rlU7jMUbIAqw7P7BiLu0dtpu03LEphD4fWhzr9kQbryglGMsB890kkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638472032; a=rsa-sha256; cv=none; b=Hsieq6rQ1GDOfgwhiV1UKWPSNUwmn8M2OvgMt2AyWN59WsMgdiPlYSLVGjSeJp+RXu06Hr M7Ong69lPC/E8tebvwzDJu+CpFXZSuok4P1H/vOB1OLj5Ntja8kEgu+OaU6fq6u1KzaZ3R 5Tn0meJ8mSGD6SLSgja92pHZ02GmTUiZoGUIJ4bBoNHFW2nqcQ/gQthK9OqrosSvEYVbk5 YPUev3wS2jMtiFZTbjVWvKTAguui9U9iotT+hUBjUbRBMUwZJfaRCxdFdtcl75TgnLRini +jih+g7ssmRDDSBE+oqA0dVVD4xk7hnJwLN+E74O0x9SLhpgV/blAb7NliLUaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=9e93d2b335a061edad8f842bed82ea68bc5221fd commit 9e93d2b335a061edad8f842bed82ea68bc5221fd Author: Gleb Smirnoff AuthorDate: 2021-12-02 18:59:43 +0000 Commit: Gleb Smirnoff 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 #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);