Re: [PATCH 13/18] conf: Rework stepping through chunks of port specifiers

Stefano Brivio
2026-04-08T22:59:16Z

On Tue, 7 Apr 2026 13:16:25 +1000
David Gibson <david@gibson.dropbear.id.au> 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