On Fri, 5 Dec 2025 13:00:37 +0100
Paul Holzinger
On 05/12/2025 12:31, Stefano Brivio wrote:
On Fri, 5 Dec 2025 12:26:06 +0100 Paul Holzinger
wrote: On 05/12/2025 01:51, Stefano Brivio wrote:
This fixes an issue and introduces a feature:
- in local mode, we accidentally ignored the -4 / --ipv4-only and -6 / --ipv6-only command line options
- if no template interface is available for a given IP version, instead of disabling that IP version, use local mode, separately, for it
Link: https://bugs.passt.top/show_bug.cgi?id=129 Link: https://bugs.passt.top/show_bug.cgi?id=128 Signed-off-by: Stefano Brivio
Tested-by: Paul Holzinger Ah, thanks, that's quite reassuring / much needed for this one. FWIW, this is how I tested:
unshare -rn sh -c "ip link add test type bridge && ip link set test up && ip addr add 192.168.0.0/24 dev test && ./pasta --config-net ip a"
unshare -rn sh -c "ip link add test type bridge && ip link set test up && ip addr add 2620::1/64 dev test && ./pasta --config-net ip a"
And then the variations with adding -4/-6.
I went another way: $ ./pasta --config-net -4 -- ./pasta --config-net ip a $ ./pasta --config-net -6 -- ./pasta --config-net ip a ...maybe we should consider to slowly start making --config-net the default. -- Stefano