From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id C1BCE5A061A; Mon, 25 Nov 2024 11:47:33 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH] conf, passt.1: Update --mac-addr default in usage() and man page Date: Mon, 25 Nov 2024 11:47:33 +0100 Message-ID: <20241125104733.160308-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 4BHOXQTUR7M4C33J5HPM2426TW7H5SYF X-Message-ID-Hash: 4BHOXQTUR7M4C33J5HPM2426TW7H5SYF X-MailFrom: sbrivio@passt.top 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: David Gibson 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: Fixes: 90e83d50a9bd ("Don't take "our" MAC address from the host") Signed-off-by: Stefano Brivio --- 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 -- 2.43.0