From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YCcA1v0k; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 5DABA5A0265 for ; Thu, 09 Apr 2026 00:59:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775689155; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=fmem3cXLc/ci0mQtvurexy7BF+2iVHfrcEW8Y0GeSIg=; b=YCcA1v0k5FxrsoF1mIWyjhzsgOvBuTscExVSrn3ksrGITWXWy5icJhzKKxB5TaR6qqR0Ar PAV+d0LJe3IIZ0RBpoY32hv1NFKCl0u2X66KHfWnXAHTdSBKG8cHSjPqme7DruWFEbib6l 7zD77ircp+pExxEqelnwKjwBwRVuwDY= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-394-bWxGROcRNFi0piJB1LR00A-1; Wed, 08 Apr 2026 17:40:26 -0400 X-MC-Unique: bWxGROcRNFi0piJB1LR00A-1 X-Mimecast-MFC-AGG-ID: bWxGROcRNFi0piJB1LR00A_1775684425 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-488ba2919b9so833795e9.1 for ; Wed, 08 Apr 2026 14:40:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775684424; x=1776289224; h=date:content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fmem3cXLc/ci0mQtvurexy7BF+2iVHfrcEW8Y0GeSIg=; b=JC28mb2aG5B6Wwx3DUcsBVoGb1/dtt4EuiTAJwZpyZ3KSxOKAJPBnLIYywYfbAQXn5 JS5WbBPGczdsP43vN9JlfTwG2O3phhAfayiMzLPm1HrvJgmZDjW6lHzCQNnUuVRtKMai JpFY/4hgkAKkxDHSepd1DNu/baxYUJPH/8y4Sm7De5aIjnLoo3atUEATeXDuJl8vT3wJ 4bluHFebukKLDZb1DyUVohan5ScL57m/omzyTwPCU3b33DRitBHNP3SaHG2bAIiEFa73 ZD6rKw2H9KoQgVYwtoWsx7hUuopPmmD+yFPA5GAjcDTfhE6uChmtljWyUYosE6MUo8vt m/AA== X-Gm-Message-State: AOJu0YwhXlX6g95BxK9DnSQ6qzPNpNOfLUiPNmhN570HpUegDuzAz6g+ x2lYlUMcgeNhdsGRLYxdZgeilb4+lSd5iDFsPuzifRje7oLT1kd68M2z2TKvuWNCE53JEaOiAbC IUujV9NTwLHRZknShF/wAHsbm+IfNbsBZC5D16zPOSSZEvDvbgvMprx2Sowfe7g== X-Gm-Gg: AeBDietmt9BHsWMWoJJCfGdW3wkqyVPUN8qAu8c4w44RQkTmg/dJy2/piWNq5PM3LF0 xjhMlrYPu28XfcO/yXGUXsRG4OZ573eo96JcUaeYZpo9vTw19zb58KTuldJcXJH2dSOyoVLeAzg OhyjMC20XGvGxHMao1m3jlxTpNuU2ZHDA+7K4dx8nouvL5sxLh7Oik3+MrDdVWICwpr4jfc+S2i U6VHBGuDbTFGCt4HoJpQMq456e90NuOa5M7ihL5Vr6L8qJ24IwoaKvKLzcWWW0uH2VZ9JTQtNMg 4Iy/HcdDruWjuu9abTX9qD18U7XRy3Wjw8tE0gXObRXSb5NAW7sqBGsp80hpXF+Oj85WpQOILAW NU46fwaq6wMUcjtoXkbefWd4Y3z500cwJ X-Received: by 2002:a05:600c:a47:b0:487:1108:48bc with SMTP id 5b1f17b1804b1-48899775d9amr336649665e9.17.1775684424295; Wed, 08 Apr 2026 14:40:24 -0700 (PDT) X-Received: by 2002:a05:600c:a47:b0:487:1108:48bc with SMTP id 5b1f17b1804b1-48899775d9amr336649435e9.17.1775684423916; Wed, 08 Apr 2026 14:40:23 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e4f843dsm59315013f8f.37.2026.04.08.14.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 14:40:22 -0700 (PDT) From: Stefano Brivio To: David Gibson Subject: Re: [PATCH 13/18] conf: Rework stepping through chunks of port specifiers Message-ID: <20260408234021.7f35406b@elisabeth> In-Reply-To: <20260407031630.2457081-14-david@gibson.dropbear.id.au> References: <20260407031630.2457081-1-david@gibson.dropbear.id.au> <20260407031630.2457081-14-david@gibson.dropbear.id.au> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Wed, 08 Apr 2026 23:40:22 +0200 (CEST) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ALcZ8ADSN5WkO9PBcXAyLzKw3r0mU-HUCW0YgbFi-hA_1775684425 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: IT74IEI4VJAFYUFSKADQFBZFO235WHC7 X-Message-ID-Hash: IT74IEI4VJAFYUFSKADQFBZFO235WHC7 X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, 7 Apr 2026 13:16:25 +1000 David Gibson wrote: > Port specifier strings are made up of ',' separated chunks. Rework the > logic we use to step through the chunks. > > Specifically, maintain a pointer to the end of each chunk as well as the > start. This is not really used yet, but will be useful in future. > > This also has side effect on semantics. Previously an empty specifier (0 > chunks) was not accepted. Now it is, and will be treated as an "exclude > only" spec which excludes only ephemeral ports. Not really, because getopt_long() wants an argument for those options anyway. -- Stefano