From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH] conf, passt.1: Update --mac-addr default in usage() and man page
Date: Tue, 26 Nov 2024 11:41:50 +1100 [thread overview]
Message-ID: <Z0UZTjQWqsLoX6zf@zatzit> (raw)
In-Reply-To: <20241125104733.160308-1-sbrivio@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]
On Mon, Nov 25, 2024 at 11:47:33AM +0100, Stefano Brivio wrote:
> Fixes: 90e83d50a9bd ("Don't take "our" MAC address from the host")
> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> conf.c | 2 +-
> passt.1 | 3 +--
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/conf.c b/conf.c
> index 551c2b0..3a84669 100644
> --- a/conf.c
> +++ b/conf.c
> @@ -826,7 +826,7 @@ static void usage(const char *name, FILE *f, int status)
> " -n, --netmask MASK Assign IPv4 MASK, dot-decimal or bits\n"
> " default: netmask from matching address on the host\n"
> " -M, --mac-addr ADDR Use source MAC address ADDR\n"
> - " default: MAC address from interface with default route\n"
> + " default: 9a:55:9a:55:9a:55 (locally administered)\n"
> " -g, --gateway ADDR Pass IPv4 or IPv6 address as gateway\n"
> " default: gateway from interface with default route\n"
> " -i, --interface NAME Interface for addresses and routes\n"
> diff --git a/passt.1 b/passt.1
> index 8d1d860..15c8338 100644
> --- a/passt.1
> +++ b/passt.1
> @@ -176,8 +176,7 @@ according to the CIDR block of the assigned address (RFC 4632).
> .BR \-M ", " \-\-mac-addr " " \fIaddr
> Use source MAC address \fIaddr\fR when communicating to the guest or to the
> target namespace.
> -Default is to use the MAC address of the interface with the first IPv4 default
> -route on the host.
> +Default is the locally administered MAC addresses 9a:55:9a:55:9a:55.
>
> .TP
> .BR \-g ", " \-\-gateway " " \fIaddr
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2024-11-26 0:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 10:47 [PATCH] conf, passt.1: Update --mac-addr default in usage() and man page Stefano Brivio
2024-11-26 0:41 ` David Gibson [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=Z0UZTjQWqsLoX6zf@zatzit \
--to=david@gibson.dropbear.id.au \
--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).