From nobody Thu Nov 10 17:30:35 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 4N7TPl28BHz4dTr3; Thu, 10 Nov 2022 17:30:35 +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 4N7TPl1kR4z3nTC; Thu, 10 Nov 2022 17:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668101435; 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=Kje4cWVeeANN/eh1fuKOmAUiH9qraKKRclhtn79Oelg=; b=RyVnxuf3Xrac6+HTpbME2Iu4pmfFEw/NMv3/OCzo3g011SMj9EWa8MIoSA2gnakOCYVAoG 8Y0adLzln8T8wH7opPadakw3FpMEcz1zcJqQLtHrl8jXS62KDmGcZe7OeRuN6psXOwULv0 skoboRpNtfojGK+sMKtkNBHZEO8A/2aTsC6TGpBjKnqIFm8sHBImtsjBw0oDrV24j0dRxf WI7arjd3b1yryeT/QBDMdusxOnpKX+LbcBY91qloMIV9pS4IYOmce0IOqMJZVZhXlY5AI6 NtNMp3yoiBX8AiwbSovngsVq8OF65IIxhAJvCl39wzxprz6yJ1qqXVylGv32XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668101435; 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=Kje4cWVeeANN/eh1fuKOmAUiH9qraKKRclhtn79Oelg=; b=U2R1fqjM3huPKS7fBPak+hZ+mz4/iNUZFRG0XfcrvDQ7bZxWdhwFimncyUmQAyUCv2DUw7 SRFahE7GSf1B8PR9AenZeHAnCvZTPZg8KtckVulJXOdzhBF8lPFKcUtXwbfyda2vAB8nnF 5ufHebKjzl1QApitya00Yv9qIAd0dj6DB4oG5tD0RdhHF6XfUSlLZzyvZFbtISuAqKlAsq iv4nOltfPdBu74itFROFrbS5/yW6FmGXtDu0mlIAbyRkotu7qPuiZG2s6nhu2ULcpFEG5A +kBXsyvt+AZ27YF/3MQvpxL/+gX6ywX/rC7bQyuHBIeUUyVALIT7btOXzEVE7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668101435; a=rsa-sha256; cv=none; b=KPBl8Gv400345xcMXInhoS5+W7LxscCKV6dATxYL32lMSKS2/2fn4LO9qKPb9Bp1KFasX0 9vSynurETJDfY35/QPj3EBU5JdSTWBdpWh5xJst1bYyU+M5MlL9vnHB4KV+46dO2dN3CeY 0gR1/j+4kNQFlmObiRnss5VPlFvNTFgb+uHEiOixIVJk74X4qStMBIw9hW2qZdKA6EepCY fF7uWShKbI6TzDlm7a4/eEOxZQRyhNcispV+aCu3cW+rLSvlSPKtx5oMp5yPR/nGTWZCKP fcs4rdUalpNquZlkQ13QxMhh8j0VfNQzWZvyVyQiqvutANtsL4KqPPTWvYBESw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N7TPl0m8Fz18mq; Thu, 10 Nov 2022 17:30:35 +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 2AAHUZFf055476; Thu, 10 Nov 2022 17:30:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AAHUZm6055464; Thu, 10 Nov 2022 17:30:35 GMT (envelope-from git) Date: Thu, 10 Nov 2022 17:30:35 GMT Message-Id: <202211101730.2AAHUZm6055464@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 28cfced85b64 - stable/13 - in6: Consolidate IN6_ARE_ADDR_EQUAL definitions 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 28cfced85b64c8365aef7d7a15346514b03a8e50 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=28cfced85b64c8365aef7d7a15346514b03a8e50 commit 28cfced85b64c8365aef7d7a15346514b03a8e50 Author: Mark Johnston AuthorDate: 2022-11-02 17:06:54 +0000 Commit: Mark Johnston CommitDate: 2022-11-10 17:03:03 +0000 in6: Consolidate IN6_ARE_ADDR_EQUAL definitions It is ok to use memcmp() in the kernel. No functional change intended. Reviewed by: glebius, melifaro MFC after: 1 week Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37028 (cherry picked from commit 0d5d356b3649c2fba70bd8d657920620223831d3) --- sys/netinet6/in6.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h index 10bc1f91c554..82f876506f0f 100644 --- a/sys/netinet6/in6.h +++ b/sys/netinet6/in6.h @@ -219,19 +219,11 @@ extern const struct in6_addr in6addr_linklocal_allv2routers; /* * Equality - * NOTE: Some of kernel programming environment (for example, openbsd/sparc) - * does not supply memcmp(). For userland memcmp() is preferred as it is - * in ANSI standard. */ -#ifdef _KERNEL -#define IN6_ARE_ADDR_EQUAL(a, b) \ - (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) -#else #if __BSD_VISIBLE #define IN6_ARE_ADDR_EQUAL(a, b) \ (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) #endif -#endif /* * Unspecified