From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202410 header.b=RbzhNnoO; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id CFAED5A004C for ; Tue, 26 Nov 2024 01:45:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1732581904; bh=cyQvPf/66KfjLE2lu3SDpvxk4wkhllkWN2aZ0r+UfS8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RbzhNnoOcb/Z82CwpogYB/1zxVsqQTRN7zJ5lNSaneAis4STjKhfueiJS9Nm+59xh AyOW0mc/E8a7Q1jYty3sWX25b1v3dMhxHPQoltw1WNKbQoxzv+0gnyY13pA8po2xa8 p6NUd30jOXn/94cGuplumhXtV35ET144QJvIQphi+4OW2gDSiaQFhWTgcroyqjSvxO 1Yux9Lnb3tjhsRGAOTxD5gjEhSHGM3qpFkKT7fWQYdyswgtjZLaLzUSUGoVeEELEpV PiqgGkoLojT1QCR3/cNNeTQGc/4cCtSqZAXuQpzg1asIaXPuoQb+84UctwqeWLegEQ 2FCsRsgzlXeKA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Xy3km71JTz4x66; Tue, 26 Nov 2024 11:45:04 +1100 (AEDT) Date: Tue, 26 Nov 2024 11:41:50 +1100 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH] conf, passt.1: Update --mac-addr default in usage() and man page Message-ID: References: <20241125104733.160308-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WRQ7Ayh3IL5JRkKn" Content-Disposition: inline In-Reply-To: <20241125104733.160308-1-sbrivio@redhat.com> Message-ID-Hash: OCLSBZYTBXDDCGOIRXX6FZHULO7QA657 X-Message-ID-Hash: OCLSBZYTBXDDCGOIRXX6FZHULO7QA657 X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --WRQ7Ayh3IL5JRkKn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Reviewed-by: David Gibson > --- > conf.c | 2 +- > passt.1 | 3 +-- > 2 files changed, 2 insertions(+), 3 deletions(-) >=20 > 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 stat= us) > " -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 d= efault > -route on the host. > +Default is the locally administered MAC addresses 9a:55:9a:55:9a:55. > =20 > .TP > .BR \-g ", " \-\-gateway " " \fIaddr --=20 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 --WRQ7Ayh3IL5JRkKn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmdFGU0ACgkQzQJF27ox 2GeOmw/+I8LkIm+h3zG5XutVvHNZKX5QBkd0a1rksXMkHpBzHiIqUMjuwpoZIZYG EqaKQ0X5jR7pWRW6VICviNmWT12W7BoVfJ6JGr9LOGQdjYYqY5Im3ycgpCKAGob2 bs/0fdP8c4X+oiCOUn9bNntRF+SgbEmrYSD+p3ZLwPxGHEerc+uC1l4rYsNHJSEG tsl9rhhokR+zvjclOotQTHLigxFidVeTMYYiAsFyep/HsVJLevGbEhIsucOMhBYI efG03oMYuC+Kysg371HxSMQXHdUhTFX6dwaCVDeixTVdrkno+FkyIDgG59/12oCd aIkJ922hJRhNC4LrpXj7vS+nf8w4WJSsDNKFCE1tu0wrQ0z0gBH+cHa62SEpkDc7 xTtdMPPvZlwaOBTTjKVY9P7Hk5VBd3axq+j/43FnBvEE3Hacxtk9zUQQvcjztw6A /GbSoHXGdb3wMG+L6bxmzaT3W2Q5Okp7TKRqj1hf2UvD7egzXFE1Bmf7OQ44XZBQ Z2BkVWO0Qks1Kdx2hrHXgVCHu8o0Ek1r52TuPZ7+FAZwXbtCPNwu6ExFSpDsLoFf yIRqFJdN4FwTik2zpl/iqseTsHQ4zg/24pysviI3PVIsyRsWKKWC7M0lcft9524Y o4MYn9JlHXpaE1JyJv/3dm7M39FfRHUS/5mPfiJgSZ39xqFaNXo= =/qYb -----END PGP SIGNATURE----- --WRQ7Ayh3IL5JRkKn--