public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] conf: If no interface with a default route was found, say it
@ 2024-02-27 16:29 Stefano Brivio
  2024-02-27 21:25 ` David Gibson
  2024-02-28 10:18 ` Paul Holzinger
  0 siblings, 2 replies; 3+ messages in thread
From: Stefano Brivio @ 2024-02-27 16:29 UTC (permalink / raw)
  To: passt-dev; +Cc: Paul Holzinger

...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>
---
 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;
 	}
 
-- 
@@ -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;
 	}
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-28 10:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2024-02-28 10:18 ` Paul Holzinger

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).