From nobody Wed Apr 13 23:09:32 2022 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 B97BB1B409EB; 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 4KdywD5hfHz4m0T; Wed, 13 Apr 2022 23:09:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891372; 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=lq0vxzjd7hj87JArIUgfxDs/esAOIMIgGOCVn1awTzA=; b=DhMx7mioL1ljQdZnDQMu0bE8IlA2HBU6qnYSUyIsT8EI4FQJmZ0iA4KBqDUNZ6lAnW+C+R WcDtHnMTX4qzLdnJ9PF5OUlgHKyf0GHcdCbBZUgSqvzjxrO6oWN8CfriPf9lPl3ss59Wim y+4YWp0veal9WJZW5djyndzAMZL9sOk1ATxCa6dyszbDaKdcj50yxstfT46vRbVKhAaxgH Ra+MdbpSyh20D3aJbjgoou/1wTu8ZjK0cNKj7J3/PuJLHYXXbqDTOYpX66iNy3Z4CT7dez FVtPhOgX7NMNwW6xNraQHNO7T5uwNi7/wWKL3DdrW/N2qsjZEiRGPadODEd6HQ== 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 77A8415384; Wed, 13 Apr 2022 23:09:32 +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 23DN9Wgj074511; Wed, 13 Apr 2022 23:09:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9WtZ074510; Wed, 13 Apr 2022 23:09:32 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:32 GMT Message-Id: <202204132309.23DN9WtZ074510@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: d98981585c9a - main - ether_resolve_addr: eh is only used for INET or 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d98981585c9a4de8105979d59d38ab6b4ce294c3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891372; 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=lq0vxzjd7hj87JArIUgfxDs/esAOIMIgGOCVn1awTzA=; b=qfNv5DmZtdd5dQQqzO+j8xTaKv4cvdaBACgfpm8TMqineskkT9PDDWR6L/n7qOVRkHyYas Px1H/k87HnmcZ50qH9B0DME84VcWBxuRjSk+IrL5H23ArPR9IH/fAXNTufT4ygxnXKpXFZ FhcAagvqHjhiJfSSZcp2vufxiH1quSFD2ei3igE1qQxqL7bfuhoHUcZYkjF2AkQatm4jRB 3pXaCbTqBY1Yd0V/3Uji0cn95415fXPkBlTuB1B9WIfWq5Oq/k8KmzO3QSsW9rIGGAcbjq Lf56TSHKcyWs9iWu6aY+dbsvtY8MkZ9JgERWehtZL3OCCVFhxcP9guk+7O8kEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891372; a=rsa-sha256; cv=none; b=TbmjLXaEGgBMMxMryo33FsV8JSvBAcj1f+zxM0UszVHKr2XYV6L+mWtyHgcWSx/TGZ2xHM RDlW64tRR4VxTgAgV646hihPLyO3FvSRTJmJjqagmMrE3uCDauVPEL9uaiY6Cym9/HjWV9 qVMw8fCGABfjFpkNletw5Yp7EiDCfhFBBTPMWcwjthXKoXcaAKCUbw6gvFoN8n9L7Ia7jN 8KWk0o1dU/BjRK3AeARtqrYu0talXPzaRc5Ry3cezaTlQFSeFNwuhznRo5hQunoOT0vTGj nQK/2AKVqqEXkwxWONGFggzuHlKeCX2MGMXNT7zlgoaLmidwgxXrvldi4vxaIw== 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=d98981585c9a4de8105979d59d38ab6b4ce294c3 commit d98981585c9a4de8105979d59d38ab6b4ce294c3 Author: John Baldwin AuthorDate: 2022-04-13 23:08:21 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:21 +0000 ether_resolve_addr: eh is only used for INET or INET6. --- sys/net/if_ethersubr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 0427e1352ab1..d92c49b6f39c 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -202,16 +202,15 @@ ether_resolve_addr(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro, u_char *phdr, uint32_t *pflags, struct llentry **plle) { - struct ether_header *eh; uint32_t lleflags = 0; int error = 0; #if defined(INET) || defined(INET6) + struct ether_header *eh = (struct ether_header *)phdr; uint16_t etype; #endif if (plle) *plle = NULL; - eh = (struct ether_header *)phdr; switch (dst->sa_family) { #ifdef INET