diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-04-10 11:02:59 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-04-15 23:31:57 +0200 |
| commit | 42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8 (patch) | |
| tree | cc33af456376ebd17e8f988302b2e54ec322a33e /doc | |
| parent | d62a552c91d75f3312ec14f8138aebd5bbfe7f61 (diff) | |
| download | passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.tar passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.tar.gz passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.tar.bz2 passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.tar.lz passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.tar.xz passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.tar.zst passt-42c49e8c3bc4f8dc8cf63511201675ba6da7c1e8.zip | |
conf: Rework stepping through chunks of port specifiers
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. This seems a bit odd, and
I don't expect it to be (directly) used in practice. However, it falls
naturally out of the existing semantics, and will combine well with some
upcoming changes.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
