diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-01-16 11:59:21 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-01-18 12:47:53 +0100 |
| commit | 03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94 (patch) | |
| tree | 4ad9326313163aca43f79e69af4a16b70678ae6e /test/tcp | |
| parent | acb7a3057bbc6af72399c44d747c1cf7fb92d17f (diff) | |
| download | passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.tar passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.tar.gz passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.tar.bz2 passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.tar.lz passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.tar.xz passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.tar.zst passt-03a9c4b2eb3f1708e9ef5e4241cbda6a08aefc94.zip | |
conf, fwd: Check forwarding table for conflicting rules
It's possible for a user to supply conflicting forwarding parameters, e.g.
$ pasta -t 80:8080 -t 127.0.0.1/80:8888
We give a warning in this case, but it's based on the legacy
forwarding bitmaps. This is too strict, because it will also warn on
cases that shouldn't conflict because they use different addresses,
e.g.
$ pasta -t 192.0.2.1/80:8080 127.0.0.1/80:8888
Theoretically, it's also too loose because it won't take into account
auto-scan forwarding rules. We can't hit that in practice now,
because we only ever have one auto-scan rule and nothing else, but we
want to remove that restriction in future.
Replace the bitmap based check with a check based on actually scanning
the forwarding rules for conflicts.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp')
0 files changed, 0 insertions, 0 deletions
