]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: update debug log when foreign routes are received with ManageForeignRoutes=no
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Jul 2020 20:17:31 +0000 (05:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Jul 2020 20:51:41 +0000 (05:51 +0900)
src/network/networkd-manager.c

index 267a391e11be057fd1fcc1c556d7a03e61b990ab..4fbb7965be022ff376e641feeae355ac36662083 100644 (file)
@@ -505,7 +505,8 @@ int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, vo
 
                 log_link_debug(link,
                                "%s route: dst: %s%s, src: %s, gw: %s, prefsrc: %s, scope: %s, table: %s, proto: %s, type: %s",
-                               (!route && !link->manager->manage_foreign_routes) || type == RTM_DELROUTE ? "Forgetting" :
+                               (!route && !link->manager->manage_foreign_routes) ? "Ignoring received foreign" :
+                               type == RTM_DELROUTE ? "Forgetting" :
                                route ? "Received remembered" : "Remembering",
                                strna(buf_dst), strempty(buf_dst_prefixlen),
                                strna(buf_src), strna(buf_gw), strna(buf_prefsrc),