From nobody Wed Nov 02 17:47:13 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 4N2Z8f1VwSz4gVqj; Wed, 2 Nov 2022 17:47:14 +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 4N2Z8d6d3zz41hm; Wed, 2 Nov 2022 17:47:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667411233; 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=aHikLTDh/9QuYWTKdsvWLI1PGoeqM+nFpZrMcXKhCpA=; b=AF4HFACyeUUU7QYFPc//Ysi/gaanRAq0yGLtKFgRmrhyPhfCVmWc/XoyJlZX2++WgbNDGP Z4xuT4YNh+yqhBRzC4E2Jti/26wzNHCp1sbQu+xq6VJfbfjUmbwik5NNwgdE54T3sRWJOw oSgefhLyrxu0ZSNO4VOe+63bQs79q1x57VyNrqRirdF/Z03pdc/JcMZWhBy50YNMMb9O/C Kc+a7y9MxEP1S8mbqYrV9mO/8WkWDSMypVpHRQvrd8v+2ZjaaIiQXJGzuIgsrh/1pINH07 Q0LgmHZG01fc0so/i7a6Uj3PHnYZlPjUpTYCSrbL/yD/tZxAgK/MniRnHBhVGQ== 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 4N2Z8d5kgkz1551; Wed, 2 Nov 2022 17:47:13 +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 2A2HlDWX022634; Wed, 2 Nov 2022 17:47:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A2HlD2Y022633; Wed, 2 Nov 2022 17:47:13 GMT (envelope-from git) Date: Wed, 2 Nov 2022 17:47:13 GMT Message-Id: <202211021747.2A2HlD2Y022633@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 0d5d356b3649 - main - in6: Consolidate IN6_ARE_ADDR_EQUAL definitions 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d5d356b3649c2fba70bd8d657920620223831d3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667411233; 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=aHikLTDh/9QuYWTKdsvWLI1PGoeqM+nFpZrMcXKhCpA=; b=sO8wtXjH6S1/Z213LtKDDynvTyH/1lqLgNg3wAm514XMz9ylogaKr893Peykxe1rNK+mwY ASW+FJPryuCBQ2JNVn36FDnfzBdLkBJzF+m/iMeANoar1H+yNzRkXBgT7pwqHkT4sf7uW4 2R3R+i0mJYh7leYtn9ud4atlwR84R82MooS8hLH0SYmeYvq89mHSkFyO4fUrIfo3qRbavZ CbGw646ZcCBf/jPUuuR2XclTu7MLld2uRM+lmTpHZMznz0tS96Jz0sNNMdeh7CllBEHpEn bukpeBWJLnkr7dB1uCyyyFCkvf47btSZy630gV8TTCroIqdq2CGjMl63BRDSPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667411233; a=rsa-sha256; cv=none; b=Q4G58YiWppipUK5B6uRwHxuFh1SxgyggDW9bLADDJBrDChFQZbLd5D+NXBgSDRSpNaGaOc vcTHzl1V+DklasTTnqpzKPdzZiqmhDS4Y0uqkIPtnTHCdYxeOiCQlqulGStYXOwvBS6aXP VZV7mEsjkqN2t8sCoVCMtL3Eqe62y57sXu/znoOOKjAnOZ+WgmGWa9d6THMAvzDm42KnGH WUIa8JXIOzwLsRofEe1XSHgRCdwl3JTP3VBHD0QDm5sZJQFxIlVXWbCQmnty854/ReOyIa l2UlQ79lZANCccHWOPedXbs6Kltlpi2+ZcpmDWH/TEuPXVol2CM6DGA7rxg7rQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0d5d356b3649c2fba70bd8d657920620223831d3 commit 0d5d356b3649c2fba70bd8d657920620223831d3 Author: Mark Johnston AuthorDate: 2022-11-02 17:06:54 +0000 Commit: Mark Johnston CommitDate: 2022-11-02 17:46:24 +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 --- sys/netinet6/in6.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h index 4c20532256b2..f9823fa97d03 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