From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top, Paul Holzinger <pholzing@redhat.com>
Subject: Re: [PATCH] conf: If no interface with a default route was found, say it
Date: Wed, 28 Feb 2024 08:25:12 +1100 [thread overview]
Message-ID: <Zd5TONutQWaztb6J@zatzit> (raw)
In-Reply-To: <20240227162949.2442048-1-sbrivio@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]
On Tue, Feb 27, 2024 at 05:29:49PM +0100, Stefano Brivio wrote:
> ...instead of implying that by stating that there's no routable
> interface for a given IP version. There might be interfaces with
> non-default routes.
>
> Suggested-by: Paul Holzinger <pholzing@redhat.com>
> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> conf.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/conf.c b/conf.c
> index 17cf279..fb77272 100644
> --- a/conf.c
> +++ b/conf.c
> @@ -565,7 +565,7 @@ static unsigned int conf_ip4(unsigned int ifi,
> ifi = nl_get_ext_if(nl_sock, AF_INET);
>
> if (!ifi) {
> - info("No routable interface for IPv4: IPv4 is disabled");
> + info("No interface with a default route for IPv4: disabling IPv4");
> return 0;
> }
>
> @@ -637,7 +637,7 @@ static unsigned int conf_ip6(unsigned int ifi,
> ifi = nl_get_ext_if(nl_sock, AF_INET6);
>
> if (!ifi) {
> - info("No routable interface for IPv6: IPv6 is disabled");
> + info("No interface with a default route for IPv6: disabling IPv6");
> return 0;
> }
>
--
David Gibson | 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 --]
next prev parent reply other threads:[~2024-02-27 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-27 16:29 [PATCH] conf: If no interface with a default route was found, say it Stefano Brivio
2024-02-27 21:25 ` David Gibson [this message]
2024-02-28 10:18 ` Paul Holzinger
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=Zd5TONutQWaztb6J@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=pholzing@redhat.com \
--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).