From nobody Thu Dec 30 23:41:58 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 B32E51917E94; Thu, 30 Dec 2021 23:41:58 +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 4JQ4Yf3Cjzz4n4w; Thu, 30 Dec 2021 23:41:58 +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 4E3D521799; Thu, 30 Dec 2021 23:41:58 +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 1BUNfw2Q062303; Thu, 30 Dec 2021 23:41:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BUNfwtd062302; Thu, 30 Dec 2021 23:41:58 GMT (envelope-from git) Date: Thu, 30 Dec 2021 23:41:58 GMT Message-Id: <202112302341.1BUNfwtd062302@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 818952c638a7 - main - Fix kernel build without INET6 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 818952c638a72bd677345fd8ddd05c31b34a2aee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640907718; 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=lvmcTvH60sJ7Pf6SWqk8EoBuz0HqzhpysoB+DtxcP/c=; b=lgcVgXeiH7Mm0FXpFNbqUdRCeCOfHQDY0hprmlBAZvD/tUPKkEnowGVjG2VGFOXv7oZiOd gV2wYyH9fFQGiQhNoILAjOklpqGhhBf09nphM7/qgFFEHwXp2pytZtEt0Tr1n9yQI/yhRh kLpmPSK1PjLT60hS/P7I/kjplHFrznnCKS34CtyTo2QrNgUULR/o6MZQDnDKDL145GwYha Vul5LeQLWnvu3Z+esBnetXQWu6XR6CvoJwzxlE3jffFizl9x2ydMlgeZxVUlvAGar4bVz2 dyiVJLcLKdmCprK2qCpYuE1ngd/xXaYcIBh4IPmr1CaVkAJOUVxxFXXWw/p1ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640907718; a=rsa-sha256; cv=none; b=Eycdir9rvCkWJM6tJC6v4+Nh64Oe0kwtFvWDjn9vC+usyQZ8zx0W5n+fPsGby/LB1xjSYh XfRGzdDJGoJ/nz1qVsrxe5ieVjl2TzhawHnD42YE1KwIdSrzG8Tr3yKpbiGbXZhSTf9SBr Jqt6CtaK3Av05krwBtagSoxIsmtv4mTXgNqpSvAk7SFCSkAPAnBM/coLzZRBBahl77pCFW B73aJv88RQ0KpGBVaIdM9g3WwnEBIQ5PcgkHWihkm86s7GkqQrfD9YoU+YEGoZ2knP76Us ciN4kikyh/X3qxZjq60N70IWcf572E24ceYZ1vn+zeMLZdglZomFGtW2gKC6Tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=818952c638a72bd677345fd8ddd05c31b34a2aee commit 818952c638a72bd677345fd8ddd05c31b34a2aee Author: Ed Maste AuthorDate: 2021-12-30 21:49:35 +0000 Commit: Ed Maste CommitDate: 2021-12-30 23:40:46 +0000 Fix kernel build without INET6 Reported by: Gary Jennejohn Fixes: ff3a85d32411 ("[lltable] Add per-family lltable ...") Sponsored by: The FreeBSD Foundation --- sys/net/if_llatbl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index c61a19f39de2..418f4135185c 100644 --- a/sys/net/if_llatbl.c +++ b/sys/net/if_llatbl.c @@ -781,10 +781,14 @@ struct lltable * lltable_get(struct ifnet *ifp, int family) { switch (family) { +#ifdef INET case AF_INET: return (in_lltable_get(ifp)); +#endif +#ifdef INET6 case AF_INET6: return (in6_lltable_get(ifp)); +#endif } return (NULL);