From nobody Wed Nov 09 16:42:08 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 4N6rNK2K0Kz4dJ90; Wed, 9 Nov 2022 16:42:09 +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 4N6rNK1vY2z3Cfk; Wed, 9 Nov 2022 16:42:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668012129; 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=hsJlvxFTfdlalSCYvyDHQ0KHim5xLM9i0qF/yQ0Ml9U=; b=i8QD9ghH6pcG18U9f9E3AVVms0FnQkDNjx/GwcTZiJnDuvfmwmzA/gxK/gRMZdgZuhfSET jaVkb6GmNdsfY4qLZPhjF8PFbHwtosFVhHgBBDNUkzZgL61fUiF2YdtbRB/ue4t2ywId7f Lc2Uord7t4A55B7C/j1WXSzdfDchCFiGkJpnMIQ6Ue9h+GBr75ZuWZibMf8zSuLB3dTXNP 4mEpPcs6K7eyh2x/Ks++Rak6q3McHWnG8u5LJB2MrJgxgWJ/pHR9TJGJl7Al6oNzEfnpE7 OE/VsmwLpZC1Cleh4uN5jz85rGZOg2F2wJ5EXcHKj6Nw3iC3cb4i4k7qAbCoZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668012129; 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=hsJlvxFTfdlalSCYvyDHQ0KHim5xLM9i0qF/yQ0Ml9U=; b=Ja0buySRYD/nrB3qiZ1Kmqh3HRAHdeOCX3xH5o4h8h3/AZVGtLDdj28NtRv2QzhtyyBoMQ 00gceB0lVj9f3I+7RrgXnb8gWnB4Lri1qRFOPMnshChKHcSuGCGbxAUW9DkGB70/n6jpLp KXGPdPP8MjkSnC1puQQ7IDGrb7WEWHtnlo0MD5qd+2yWVwRxOJSpFfJ/hDvMD42seIzmUA gt0ns3EaYoAlCDv3rgPY+1NJNvEUIlf9WUbxcvJuglnasAd5KUMHq8zkC0b0D0rY8TMokQ LGLWeLoLUUz2pqYluda9pAaUkBds8K3Kz4VZZXsLyt/jODUk7IRx9Tnoo2SPDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668012129; a=rsa-sha256; cv=none; b=mxpNTeVnxNjQQz1GO+WcBqBtyNPuMWy2HlsV+xzG+sErw3vMriXxapWcJQcgD2nHbMzdk8 OpnZG9KfoZTKwYsfLiH+UPtIJccKhqdss00u4UAH5tzNPm79TRsandnTdTjw2qnAU6oNcP pZzJFNDYSOpaTS2E+W2eze8XJcA98O3BO/2XL++hgzaZXeVazY0mhXTo2qvnjDwAtuPgKB 0d9PopMWfTtpJpglbbxsbMZP/UlnRPgseHr1f/ERmKTzC2DBoEGNCwcO3gOZVAsQdknw0O H0T5fsJvaBm1h4WEEs0cHs96F97oYH8m4sCSJlaXoocQKzUj4juHfj9aDvDKOQ== 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 4N6rNK0h4pzSy9; Wed, 9 Nov 2022 16:42:09 +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 2A9Gg9gt039572; Wed, 9 Nov 2022 16:42:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A9Gg8rU039571; Wed, 9 Nov 2022 16:42:08 GMT (envelope-from git) Date: Wed, 9 Nov 2022 16:42:08 GMT Message-Id: <202211091642.2A9Gg8rU039571@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= Subject: git: 817f1f3064db - main - libc: Don't warn about RRSIG replies. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 817f1f3064db25f821032c8fffb131183206bba1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=817f1f3064db25f821032c8fffb131183206bba1 commit 817f1f3064db25f821032c8fffb131183206bba1 Author: Dag-Erling Smørgrav AuthorDate: 2022-11-07 15:48:11 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2022-11-09 16:41:47 +0000 libc: Don't warn about RRSIG replies. PR: 213178 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37303 --- include/arpa/nameser_compat.h | 18 ++++++++++++++++++ lib/libc/net/getaddrinfo.c | 2 +- lib/libc/net/gethostbydns.c | 5 ++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/include/arpa/nameser_compat.h b/include/arpa/nameser_compat.h index 7562984ab0ff..d70bc199b823 100644 --- a/include/arpa/nameser_compat.h +++ b/include/arpa/nameser_compat.h @@ -177,15 +177,33 @@ typedef struct { #define T_SRV ns_t_srv #define T_ATMA ns_t_atma #define T_NAPTR ns_t_naptr +#define T_KX ns_t_kx +#define T_CERT ns_t_cert #define T_A6 ns_t_a6 #define T_DNAME ns_t_dname +#define T_SINK ns_t_sink #define T_OPT ns_t_opt +#define T_APL ns_t_apl +#define T_DS ns_t_ds +#define T_SSHFP ns_t_sshfp +#define T_IPSECKEY ns_t_ipseckey +#define T_RRSIG ns_t_rrsig +#define T_NSEC ns_t_nsec +#define T_DNSKEY ns_t_dnskey +#define T_DHCID ns_t_dhcid +#define T_NSEC3 ns_t_nsec3 +#define T_NSEC3PARAM ns_t_nsec3param +#define T_HIP ns_t_hip +#define T_SPF ns_t_spf +#define T_TKEY ns_t_tkey #define T_TSIG ns_t_tsig #define T_IXFR ns_t_ixfr #define T_AXFR ns_t_axfr #define T_MAILB ns_t_mailb #define T_MAILA ns_t_maila #define T_ANY ns_t_any +#define T_ZXFR ns_t_zxfr +#define T_DLV ns_t_dlv #define C_IN ns_c_in #define C_CHAOS ns_c_chaos diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 7d8770b4f99f..14729087b82a 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -2094,7 +2094,7 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, } else if (type != qtype) { #ifdef DEBUG if (type != T_KEY && type != T_SIG && - type != ns_t_dname) + type != T_DNAME && type != T_RRSIG) syslog(LOG_NOTICE|LOG_AUTH, "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"", qname, p_class(C_IN), p_type(qtype), diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 09800b874f90..142b67f7ace9 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -292,11 +292,14 @@ gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, continue; } if (type != qtype) { - if (type != T_SIG && type != ns_t_dname) +#ifdef DEBUG + if (type != T_KEY && type != T_SIG && + type != T_DNAME && type != T_RRSIG) syslog(LOG_NOTICE|LOG_AUTH, "gethostby*.gethostanswer: asked for \"%s %s %s\", got type \"%s\"", qname, p_class(C_IN), p_type(qtype), p_type(type)); +#endif cp += n; continue; /* XXX - had_error++ ? */ }