Message ID | cfe8c33e-00c2-3fd6-9473-c3ee8542c5e5@chocky.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mHtQDI7i; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=chocky-org.20210112.gappssmtp.com header.i=@chocky-org.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=ER+ZzOkn; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P1chy3M9xz23gM for <incoming@patchwork.ozlabs.org>; Wed, 25 Jan 2023 06:38:41 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:From:To:MIME-Version :Date:Message-ID:Content-Type:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=4w7aXQAa9FDzgBvsJLZ/EcTXUpPzpX9NyK0FybyKaYc=; b=mHtQDI7ifwKPvmsXpR46ve+JxO DerUGppMrVJJoqU+AGthMSvtOHK+2nsu+vJj8HKy810BG4vx7I0PrRKA7/5dD85LfTEN0qWhI1gDo a27g8yUxMQzvn8QuiKVwW/ZbnEIjTzqgb1eDziOgbnxb5JCiVJDAIr3p3mBE2nLt153UzgGL5MELQ lxdh4vpOiHxe1EJRTtX6IizyastjB8QH+omi4UNJxEKe3VAvl3NgNrowLvxXI0MqxuzvOQcH7apDP CNuizl40DFWKXRCEGJqhUPc8MMJr4SXYXp8KHUpgz20vwOdKzvHMchSUV3C70OpJqRhesf+e0Wrwt eUzeYFRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKP4b-0052kY-HO; Tue, 24 Jan 2023 19:35:13 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKP4W-0052kA-70 for openwrt-devel@lists.openwrt.org; Tue, 24 Jan 2023 19:35:09 +0000 Received: by mail-qt1-x832.google.com with SMTP id v19so1469993qtq.13 for <openwrt-devel@lists.openwrt.org>; Tue, 24 Jan 2023 11:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chocky-org.20210112.gappssmtp.com; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=8xGhvEa+vfGPQmcMPkt0dW8YdXVh1pDy2VdixoHBhCA=; b=ER+ZzOknuJ6wmGRCv/XXVz2Ni6oUvJb1cl8H/QvZbxQ3EmkBHPigAs+C4TBY35M0l/ EVtsmEI3giGFoijiVGVJp53XkEJuT8BH1hM2qNU+pzd8AZ5HVNnL9kCD+WUWljjHmbvW m1xr+FxTGQCdfqXTzGwZFhreX2REFNUcsR9HhotFgWvOz+Bfq704oOdEFudglVHLQP2X HzJDQvjdsbny5c4U1jogjL5AUM+KWHWTHciqpec3We06XYCshEVMwwOs6+3KZ1zzq23P kD+B9nCzJH1/o9q+v3VtuAuF2cp5lcqadUxmb1O/GbtyM2+6qKl/WY6k3gUnFeQ3LjtV zvLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8xGhvEa+vfGPQmcMPkt0dW8YdXVh1pDy2VdixoHBhCA=; b=an1Y4rlLwNTRM0YOtdUzhSRjotp6YtGGMdS8mqxq5Oxao297rHKTXIhz+fkePjjoCc 4chQzvV6wFj9cR84s2sawhCPZc6R9EykLkqMZTywGGCNf1vdutiM3VOlrbmmkrTwue92 lO3htZT94ncH4QWMHwIxAwNw8kkxNCmV1GfhdExJXNlRsP/ekXrYh7AldEr/6grHIo/G Udry4kBuetN3Q+Vydy1l8zRS8pRnIgU9z/xeOMQ6grtNrLTVbWLGkdRzSQI3MKo5LW5r sptdgZ/4wizJxpTMxME7Fz8HAMe9+fVgNamA2RtxRSBnya6lJ+a7xLl4WKCmlvxJLTbx 8I7A== X-Gm-Message-State: AFqh2ko25yyuZ3LP1V8jbkSbUE0Oiwjt4lJHCmBM7EQ109NSJxiTlJDz 3RzqMgXyUF2X7j7IGskf0Xgg7/UMlqfygke6 X-Google-Smtp-Source: AMrXdXvSFAWuhuclYXkNjT0m+4/cpKMvvq+wqfw9G7y/N1wsTAGyvM2w+6Id3Jh2yHwRpG04RDz+EA== X-Received: by 2002:ac8:46c4:0:b0:3b6:980e:87e7 with SMTP id h4-20020ac846c4000000b003b6980e87e7mr25402365qto.24.1674588904775; Tue, 24 Jan 2023 11:35:04 -0800 (PST) Received: from [192.168.0.217] (c-73-154-94-239.hsd1.pa.comcast.net. [73.154.94.239]) by smtp.googlemail.com with ESMTPSA id o24-20020a05620a229800b006eeb3165565sm1916686qkh.80.2023.01.24.11.35.03 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 11:35:03 -0800 (PST) Content-Type: multipart/mixed; boundary="------------UY7y6kf7m8O9Giv1dX3JMjIV" Message-ID: <cfe8c33e-00c2-3fd6-9473-c3ee8542c5e5@chocky.org> Date: Tue, 24 Jan 2023 14:35:02 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> From: Peter Naulls <peter@chocky.org> Subject: [PATCH] odhcpd: Reduce error messages X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230124_113508_517725_3FF91C28 X-CRM114-Status: UNSURE ( 6.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: When there's no network cable connected to LAN, then odhcpd does this: Tue Jan 24 18:32:04 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:20 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (A [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:832 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
odhcpd: Reduce error messages
|
expand
|
--- a/src/odhcpd.c 2023-01-24 13:29:56.080616097 -0500 +++ b/src/odhcpd.c 2023-01-24 13:30:19.284692423 -0500 @@ -207,7 +207,7 @@ ssize_t sent = sendmsg(socket, &msg, MSG_DONTWAIT); if (sent < 0) - syslog(LOG_ERR, "Failed to send to %s%%%s@%s (%m)", + syslog(LOG_DEBUG, "Failed to send to %s%%%s@%s (%m)", ipbuf, iface->name, iface->ifname); else syslog(LOG_DEBUG, "Sent %zd bytes to %s%%%s@%s",
When there's no network cable connected to LAN, then odhcpd does this: Tue Jan 24 18:32:04 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:20 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:36 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Tue Jan 24 18:32:52 2023 daemon.err odhcpd[2017]: Failed to send to ff02::1%lan@br-lan (Address not available) Accurate, but not very interesting. I think this would be better served as debug. Signed-off-by: Peter Naulls <peter@chocky.org> ---