1
0
mirror of https://passt.top/passt synced 2024-09-28 10:05:47 +00:00

conf: If no interface with a default route was found, say it

...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>
Reviewed-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Stefano Brivio 2024-02-27 17:25:54 +01:00
parent 925af4ef82
commit bee61dd7d0

4
conf.c
View File

@ -565,7 +565,7 @@ static unsigned int conf_ip4(unsigned int ifi,
ifi = nl_get_ext_if(nl_sock, AF_INET); ifi = nl_get_ext_if(nl_sock, AF_INET);
if (!ifi) { if (!ifi) {
info("No routable interface for IPv4: IPv4 is disabled"); info("No interface with a default route for IPv4: disabling IPv4");
return 0; return 0;
} }
@ -637,7 +637,7 @@ static unsigned int conf_ip6(unsigned int ifi,
ifi = nl_get_ext_if(nl_sock, AF_INET6); ifi = nl_get_ext_if(nl_sock, AF_INET6);
if (!ifi) { if (!ifi) {
info("No routable interface for IPv6: IPv6 is disabled"); info("No interface with a default route for IPv6: disabling IPv6");
return 0; return 0;
} }