diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-08-06 19:24:40 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-08-07 09:15:25 +0200 |
commit | fbb0c9523e416a5c1ecf42287d867fc799fbf0f9 (patch) | |
tree | 431dd7e83ef7bf0ea71fcbf39e6154924b7e0825 /passt.1 | |
parent | ee36266a55478672ad2c5f4efbd6ca0bef3d37cd (diff) | |
download | passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.tar passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.tar.gz passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.tar.bz2 passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.tar.lz passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.tar.xz passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.tar.zst passt-fbb0c9523e416a5c1ecf42287d867fc799fbf0f9.zip |
conf, pasta: Make -g and -a skip route/addresses copy for matching IP version only
Paul reports that setting IPv4 address and gateway manually, using
--address and --gateway, causes pasta to fail inserting IPv6 routes
in a setup where multiple, inter-dependent IPv6 routes are present
on the host.
That's because, currently, any -g option implies --no-copy-routes
altogether, and any -a implies --no-copy-addrs.
Limit this implication to the matching IP version, instead, by having
two copies of no_copy_routes and no_copy_addrs in the context
structure, separately for IPv4 and IPv6.
While at it, change them to 'bool': we had them as 'int' because
getopt_long() used to set them directly, but it hasn't been the case
for a while already.
Reported-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.1')
-rw-r--r-- | passt.1 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -589,7 +589,7 @@ or sourced from the host, and bring up the tap interface. .BR \-\-no-copy-routes " " (DEPRECATED) With \-\-config-net, do not copy all the routes associated to the interface we derive addresses and routes from: set up only the default gateway. Implied by --g, \-\-gateway. +-g, \-\-gateway, for the corresponding IP version only. Default is to copy all the routing entries from the interface in the outer namespace to the target namespace, translating the output interface attribute to @@ -604,7 +604,7 @@ below. .BR \-\-no-copy-addrs " " (DEPRECATED) With \-\-config-net, do not copy all the addresses associated to the interface we derive addresses and routes from: set up a single one. Implied by \-a, -\-\-address. +\-\-address, for the corresponding IP version only. Default is to copy all the addresses, except for link-local ones, from the interface from the outer namespace to the target namespace. |