From nobody Wed Apr 13 23:09:30 2022 X-Original-To: dev-commits-src-main@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 5CB481B40B6A; Wed, 13 Apr 2022 23:09:34 +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 4KdywB5p51z4llQ; Wed, 13 Apr 2022 23:09:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891370; 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=Amjr4KIQspj4wijLfYu9c03bKlXzb8CtA0k42YUz4i4=; b=BfYfU/0MCHtpggWIBp37qQ/73MFtjKPdaD7OxFJ+nbbrmYgSu8mH1Q0M28iADLrd7AnSGi uwDhW88tbVUVZgqjHp843VGNGXbBWpO0XevwUpQW8Ob9/pQ8uyQyoAmRYsf5/rI0Qax8lk 2aQQ2Blprf9zmJMjRhUdObV+o6kk8Jg2v+U14d4pHVirbDmxjYxORVPD52TL39PeCIydmQ hFvuhcvZGzzEuqtNUTx7OldIR//NKQxI42rJLXalLQEzo3eLZjvonteScnm2t6KngK6Bw+ SdxmUdwgU6iiYfiqcrkXGARqpZmgqjoVPLWpuv9WhusOVpaG008rGXPdae04xg== 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 3518215262; Wed, 13 Apr 2022 23:09:30 +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 23DN9UZF074463; Wed, 13 Apr 2022 23:09:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9UVj074462; Wed, 13 Apr 2022 23:09:30 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:30 GMT Message-Id: <202204132309.23DN9UVj074462@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 2884a93651a8 - main - vlan: ifa is only used under #ifdef INET. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2884a93651a85d419e271b8fb6aaf3d91408d545 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891370; 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=Amjr4KIQspj4wijLfYu9c03bKlXzb8CtA0k42YUz4i4=; b=U8DfB1iPk+uKlEshbdYXG/B+koRwVtJB+W4WF4aDriynMC3i94yykEdjYLR8hIxKqSHZRn OeV98HUhMVFGIOInPp7NneIsYdqsZHnOWizYlBRqUuTKtwefO7gcT67DYQpXzsZ8v6uLkS dCSrjqqvWwnSVOsGDQTh55mzX+i5najE7azEhot24MRq+G6/rjfJ55J0kNXtWqtDPdNI23 k6a5R3SrenJRuDS/GyRRUgIEdI+g9CZB9REyL6VM0pECqKnYwgtN6KG59PWPAutnnG57c4 kc0cHQFElyhHGzkVTDL6uERWIiBx/l8kOZHzibvNR9yF+JB22N3iDL04KPZ46A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891370; a=rsa-sha256; cv=none; b=C3FDw2y0nx/JZUDQg907abCeQAYQ48NL6YhVcfK6u6d09b6f7oKc0GK4iWgCYR6+Ukm9Gm mBHNQpKBbKnjAMor4NJ1kjbbAeY3czPlBMDD0ouXZR9ECjBjCGW09wPyR19Ebs+vP9TgM0 O8J8L5r8gAnenX21Zh03Zjo86tzdkzkjA488EqbGkYdz43WGedtJzL/ePJIu/VKE1oldZr voJguYjn0bSVHsbDyCp7NLtOQPKyWO9c+BRDZ5vl7eYfbZt1wIHaYahMy0uoz42nWsCzCZ bjUa7Ie1TjGc6cullFv5eJVc5zKKBPn7JonZpBlcGTSq1ka8JgjZ/dSLMhpknA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2884a93651a85d419e271b8fb6aaf3d91408d545 commit 2884a93651a85d419e271b8fb6aaf3d91408d545 Author: John Baldwin AuthorDate: 2022-04-13 23:08:21 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:21 +0000 vlan: ifa is only used under #ifdef INET. --- sys/net/if_vlan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index c8256dc087a5..2bb5284c2129 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1938,14 +1938,18 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct ifnet *p; struct ifreq *ifr; +#ifdef INET struct ifaddr *ifa; +#endif struct ifvlan *ifv; struct ifvlantrunk *trunk; struct vlanreq vlr; int error = 0, oldmtu; ifr = (struct ifreq *)data; +#ifdef INET ifa = (struct ifaddr *) data; +#endif ifv = ifp->if_softc; switch (cmd) {