aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-02-27 17:25:54 +0100
committerStefano Brivio <sbrivio@redhat.com>2024-02-28 18:57:49 +0100
commitbee61dd7d064cfe1759e665f560bff52f463275e (patch)
tree726b8d4fb64cb42a267159f57c3201aa50552075 /conf.c
parent925af4ef821955adf66478a4d1ea6327316b107d (diff)
downloadpasst-bee61dd7d064cfe1759e665f560bff52f463275e.tar
passt-bee61dd7d064cfe1759e665f560bff52f463275e.tar.gz
passt-bee61dd7d064cfe1759e665f560bff52f463275e.tar.bz2
passt-bee61dd7d064cfe1759e665f560bff52f463275e.tar.lz
passt-bee61dd7d064cfe1759e665f560bff52f463275e.tar.xz
passt-bee61dd7d064cfe1759e665f560bff52f463275e.tar.zst
passt-bee61dd7d064cfe1759e665f560bff52f463275e.zip
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>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files 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;
}