From: Paul Holzinger <pholzing@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>, passt-dev@passt.top
Subject: Re: [PATCH] conf, pasta: Make -g and -a skip route/addresses copy for matching IP version only
Date: Wed, 7 Aug 2024 11:11:24 +0200 [thread overview]
Message-ID: <ac9298ed-3c10-466b-9e49-d42e071346b9@redhat.com> (raw)
In-Reply-To: <20240806183822.547868-1-sbrivio@redhat.com>
On 06/08/2024 20:38, Stefano Brivio wrote:
> 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>
Tested-by: Paul Holzinger <pholzing@redhat.com>
I got confused for a moment because `pasta --config-net ip -6 route` did not
show any routes, well turns out the -6 was parsed by pasta so I had to do
`pasta --config-net -- ip -6 route` and it works as expected now.
> ---
> conf.c | 32 ++++++++++++++++++++------------
> passt.1 | 4 ++--
> passt.h | 14 ++++++++++----
> pasta.c | 8 ++++----
> 4 files changed, 36 insertions(+), 22 deletions(-)
>
--
Paul Holzinger
prev parent reply other threads:[~2024-08-07 9:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-06 18:38 [PATCH] conf, pasta: Make -g and -a skip route/addresses copy for matching IP version only Stefano Brivio
2024-08-07 1:35 ` David Gibson
2024-08-07 9:11 ` Paul Holzinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac9298ed-3c10-466b-9e49-d42e071346b9@redhat.com \
--to=pholzing@redhat.com \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).