From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kIMiOD0VvmHzcgAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 18:07:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6CXmMz0VvmFQfAAA1q6Kng (envelope-from ) for ; Sat, 18 Dec 2021 17:07:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A7D5727DBB for ; Sat, 18 Dec 2021 18:07:09 +0100 (CET) Received: from localhost ([::1]:50648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mydAq-0002jn-TY for larch@yhetil.org; Sat, 18 Dec 2021 12:07:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myd7q-0007sb-Gy for guix-patches@gnu.org; Sat, 18 Dec 2021 12:04:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myd7q-0007hG-8M for guix-patches@gnu.org; Sat, 18 Dec 2021 12:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myd7q-00050P-5e for guix-patches@gnu.org; Sat, 18 Dec 2021 12:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52603] [PATCH 0/2] Flag missing netmasks early on Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Dec 2021 17:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52603 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52603@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163984698519141 (code B ref -1); Sat, 18 Dec 2021 17:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2021 17:03:05 +0000 Received: from localhost ([127.0.0.1]:43691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myd6u-0004yf-Mf for submit@debbugs.gnu.org; Sat, 18 Dec 2021 12:03:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:45578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myd6s-0004yX-77 for submit@debbugs.gnu.org; Sat, 18 Dec 2021 12:03:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myd6r-0006gF-Sj for guix-patches@gnu.org; Sat, 18 Dec 2021 12:03:01 -0500 Received: from [2001:470:142:3::e] (port=59050 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myd6T-0007ag-8W; Sat, 18 Dec 2021 12:02:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=ddQqe/BJPC/lenFRW87w8wACN8srkPjrmbqzPz+1o94=; b=lkTeoUbzbqudXS kYsDzPwFNPFiD1Zh3LcXaMcZp+A8tHK74vl3rNngWc+T5fKAnDuIUHcIUddLjw0CRXJfgmhHgcLjQ TO0S3iiEKEfbypXBTYfuhaHtQVY+CS6U6f6QZeFtKZJazaNU2LHArHAhZqHuoLfXd+Mwhcrr4EA4x JLf5rLRTh2dDY2XwXR3JhxZZXxjsuVYHxnRc6EX0KNjQjRm5N0bAAxEbWHGQUovcckUmOTNCvXH8z KDXQ47K2EjiNPIaRc+6z1Qks5g0NOinfzr8UbYJypBUsUo6InlqX4zxKP3um3W8rrI4L3H8UF1m6k HFR3XT+dzQDIrJ3tAHsQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:61383 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myd6T-0007lf-8A; Sat, 18 Dec 2021 12:02:37 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 18 Dec 2021 18:02:27 +0100 Message-Id: <20211218170227.19999-1-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639847229; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ddQqe/BJPC/lenFRW87w8wACN8srkPjrmbqzPz+1o94=; b=aUU5XTUvxLVsBE7R0m7K9y0V7XMvOHAOG+N7yD9iGTCV9cQ4dY7yIfpRGs35ETU+8TPwlf iqtt3ioF4caMwsS+HyRr3QGHNTJt0m2ZdzIMggBmEUSnlJyLpz63cOf28yNnUXhXx9hmF5 pF/NuKGNUgAxsjrYulgdReuI03DqPsYkwqIpawYIvZMC3NUaskbUG21PJJ8z/g0Spulc54 sHQMUkNwrw7CG0zsp7gxujk9Yb9+5z00vYFiUuc0q5rPLuFsgQ1EQwhzeC+b/GwfllAgBO KqbwntiJnEBoFkjdfo9r+xeEdGKZs3ekDcL3TaFaK0vI/fs2DShF+6HWDvm2Cg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639847229; a=rsa-sha256; cv=none; b=eItRkHAY3Jarw1i3f1ihM++CnRK0wIVNruQC3/ubAuWsJUiDC5ZPkOZp25foPU6nprsPar RhAkDG2Hv9ByZqOEnLGtJZbnQVU4W+fPsb/vQ/RbUpmVkE0surWgVi1y8dOskESTvjL8O9 vrthSEOOb0RdUXsb7jVZELsnDWHmYrBojMuj6izMbuE1BN+QQJfHy78u2FC4zWTOfAvHnt IdNiAXHtTYVNmU2GEg+Hou9ZVTrZnsr90WOhI+iIG2KO3lIIeRlUEesICagd+90pXb6bK0 KWuI8m1c6cDzkw7YeDp03cf6mEF0qL7Mj5jvDoel2Kbcxu0e3UgqrWjswQHdtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=lkTeoUbz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=lkTeoUbz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A7D5727DBB X-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: ot/dfOBD3R5x Hi! As discussed yesterday on IRC, I mistakenly configured a machine with something like: (network-address (device "eno1") (value "1.2.3.4")) This results in having a “/0” subnet, thereby preventing the addition of a route without a clear diagnostic from Guile-Netlink or ‘ip’. To avoid this, this patch flags it at expansion time (if possible) or at run time, before the machine configuration is built. Did I go overboard with ‘define-compile-time-procedure’? I don’t think so :-), I think it will serve us more than once. Thoughts? Ludo’. Ludovic Courtès (2): combinators: Add 'define-compile-time-procedure'. services: static-networking: Sanitize values. gnu/services/base.scm | 28 ++++++++++++++++++++++-- guix/combinators.scm | 50 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 74 insertions(+), 4 deletions(-) base-commit: 4204156eb4c1afd5365ef505e356f87daa91787d -- 2.33.0