From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2PNhMdx0TmAUMgAA0tVLHw (envelope-from ) for ; Sun, 14 Mar 2021 20:41:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sFn7LNx0TmCuWwAAbx9fmQ (envelope-from ) for ; Sun, 14 Mar 2021 20:41:00 +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 7FD721F820 for ; Sun, 14 Mar 2021 21:41:00 +0100 (CET) Received: from localhost ([::1]:44940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLXXn-00075z-Dq for larch@yhetil.org; Sun, 14 Mar 2021 16:40:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLXXf-00075s-MD for guix-devel@gnu.org; Sun, 14 Mar 2021 16:40:51 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:37658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLXXe-0002kK-5N for guix-devel@gnu.org; Sun, 14 Mar 2021 16:40:51 -0400 Received: by mail-pj1-x1031.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so13255694pjc.2 for ; Sun, 14 Mar 2021 13:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MB5dfxx+fjc7YNUxxSHUYa3C0vx0FX3Pw1uct5M121Q=; b=n6eW4Pn8ByOkQVz9G47YLi2ryAnl/XsiUEQqi29332GnG0Jusb70cGfzK37FxWMza4 X4Aj7sJgOEMLchthXZmCJMbrW4kXVwjsx5UK+xVG0yKSsOZnEbKcnDbFmAGNah46Lbj6 PyIxVzp0AcEva4ro5yasplWRDYRBTmDF8VU64tKnWVHG5GK+FoVGSrYX1vcO+ynipDdq PHQtwQkih+Jteq2BA6zObSMdCylzRSJV7VT5nSv/Z3LhLEz6wzM41OQqohL4HQQXityP q1qf0nQbSEcq5k/bD7o/ygaYAd9SOX+tQMWNbjnZ1ZO6IVrkMxLIrmwh5wrpymBE0YOm lmIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MB5dfxx+fjc7YNUxxSHUYa3C0vx0FX3Pw1uct5M121Q=; b=iRm9fwwOBDsVNOJh8zpYBsSYRs5NhVbK/0t49y9EXu6p/RbhyoXvXR78WRpHkH6Ivr NUZDQPTHrx8iF+/Ctm04JEI+0zhY42+GOiciaehAcf+ImXc8v/WBptMFecra4yWkS9N5 RDmr2L42XGGFQJnuZet72vFcEEktDneNY/+NhqUmQg1/D9LlIxuq/05zEz05CSty7Tr/ rSzSWrlfCXw3cpBlSd+cfckIHf5SHgQElAAcbTcDkvVDhZTyzal4AN3llp02N//WQ7lZ COrZ56z//RjNTbNYyp4hpoWULjz1Iv71ycelwofrJG/6ibGcta+FgEuKoCfrMcOr+IS4 Hp6A== X-Gm-Message-State: AOAM532LdX/M/ElxXQu5ZbaElqUuZDc+KBYj796gGKdnzwuwvl8Plb8b qxVf+xQF7Qk2yhig/jWbIywjclThVT2NMFKH0J3UK11Q X-Google-Smtp-Source: ABdhPJwzg58v93Lytt7Owv1I5a27ZS/G3ZkITZjRgNrkEPePQAC608e3m6F0mNc/3SZ8tg2tn15MN5vZtvb4x4Hg7Mo= X-Received: by 2002:a17:90a:1b24:: with SMTP id q33mr9539359pjq.86.1615754448509; Sun, 14 Mar 2021 13:40:48 -0700 (PDT) MIME-Version: 1.0 References: <20210314203110.207ed0ca@tachikoma.lepiller.eu> In-Reply-To: <20210314203110.207ed0ca@tachikoma.lepiller.eu> From: Vincent Legoll Date: Sun, 14 Mar 2021 21:40:37 +0100 Message-ID: Subject: Re: Guile Netlink 1.0 released To: Julien Lepiller Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=vincent.legoll@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615754460; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MB5dfxx+fjc7YNUxxSHUYa3C0vx0FX3Pw1uct5M121Q=; b=kNoaOUIqIk2EvumotCAMtZdno6gG1YmbQ8K8IJQGd0TvxBQwtIf556z4r4H0pNmei5wMIP 0KYLoZSbpThZwccHkqbqLF1HX5TxT0s+wV56PweZrcT8cWztOZcjSVSkeOvEUPvSs7tQIW XrxHoOEejvkIChQ0L4WFx3wYf+JogWn+Ep3wMKSbtg/Guj5uqnMLJDg1rNJd5lOkfy27gZ VH+ha7LNb8cPg7qUery2gSce2RwDg2InORvU3nLWja9k+1LeNIWTjxT0HIoplhS7f5nXcP WGDYw2WFrrUQ0RgnvF314l+MXCwDId/EtCn7kFye7Qvw6oXpulfBIkIlRWCz+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615754460; a=rsa-sha256; cv=none; b=lRyCDPE+hggRDwUJK4AlA/c+gZwhWAdbMalIuFszseHHPQjtsCUrwqFUqIKd/cnZLCjSe1 BlS+ZreuD/BQy1vUvuYaM2w9CDb7UyUfL/VG2Sfqa+7/y5buDJ2j/jGIpVD1qpZeujHInr kD4XOHd3HMFgS0ZZHaSIObry+l/8w5uMnZ0f/GOgV4WN13OxIlna1e4/w4UgqEjYk0TdI/ yJw1zCx8lg24fa3SZ+yKM1Tj7j6f7/rMqJaRy//HmkrDesy0CRr8B84l1DBQi+Ip6jbWAC dga71yDOkXAcVfyqMxaucl7kv4XVZprRR/FZcRwKP1bi+tMmx3JwXcxXBoIJug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=n6eW4Pn8; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=n6eW4Pn8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 7FD721F820 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2r+KA652+vrD Hello, just a few questions about the API On Sun, Mar 14, 2021 at 8:31 PM Julien Lepiller wrote: > ;; same as "ip a add 192.0.2.15/24 dev enp1s0 > (addr-add "enp1s0" "192.0.2.15/24") Why not separating the netmask from the address ? It forces to do string manipulation, and prevent the use of bitfield, or the dotted bytes representation "255.255.255.0". > (addr-add "enp1s0" "2001:db8::1a4c/64" #:ipv6? #t) what does the "ipv6?" parameter add ? This could be deduced from the address length, no ? > ;; same as "ip r add default via 192.0.2.1 dev enp1s0" > (route-add "default" #:device "enp1s0" #:via "192.0.2.1") "via" could also be called "gateway" (maybe that's an oldtimer thing ;-) ) But that's all kind of bikesheddy... -- Vincent Legoll