Skip to content

Commit bf8a5f6

Browse files
authored
Merge pull request systemd#19449 from yuwata/network-downgrade-log-level
network: downgrade log level and fix typo
2 parents fd98562 + 086a351 commit bf8a5f6

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/network/networkd-dhcp4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int link_set_dhcp_static_routes(Link *link, struct in_addr *ret_default_g
358358
/* if the DHCP server returns both a Classless Static Routes option and a Static Routes option,
359359
* the DHCP client MUST ignore the Static Routes option. */
360360
if (classless_route && static_route)
361-
log_link_warning(link, "Classless static routes received from DHCP server: ignoring static-route option");
361+
log_link_debug(link, "Classless static routes received from DHCP server: ignoring static-route option");
362362

363363
r = route_new(&route);
364364
if (r < 0)

src/network/networkd-link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2450,7 +2450,7 @@ static int link_add(Manager *m, sd_netlink_message *message, Link **ret) {
24502450
sprintf(ifindex_str, "n%d", link->ifindex);
24512451
r = sd_device_new_from_device_id(&device, ifindex_str);
24522452
if (r < 0) {
2453-
log_link_warning_errno(link, r, "Could not find device, waiting for device initialization: %m");
2453+
log_link_debug_errno(link, r, "Could not find device, waiting for device initialization: %m");
24542454
return 0;
24552455
}
24562456

src/network/networkd-ndisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static int ndisc_router_process_default(Link *link, sd_ndisc_router *rt) {
558558
if (!route_gw->protocol_set)
559559
route_gw->protocol = RTPROT_RA;
560560
if (!route_gw->pref_set)
561-
route->pref = preference;
561+
route_gw->pref = preference;
562562
route_gw->lifetime = usec_add(time_now, lifetime * USEC_PER_SEC);
563563
if (route_gw->mtu == 0)
564564
route_gw->mtu = mtu;

src/network/networkd-neighbor.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,9 @@ int manager_rtnl_process_neighbor(sd_netlink *rtnl, sd_netlink_message *message,
500500

501501
r = link_get(m, ifindex, &link);
502502
if (r < 0 || !link) {
503-
/* when enumerating we might be out of sync, but we will get the neighbor again, so just
504-
* ignore it */
505-
if (!m->enumerating)
506-
log_warning("rtnl: received neighbor for link '%d' we don't know about, ignoring.", ifindex);
503+
/* when enumerating we might be out of sync, but we will get the neighbor again. Also,
504+
* kernel sends messages about neighbors after a link is removed. So, just ignore it. */
505+
log_debug("rtnl: received neighbor for link '%d' we don't know about, ignoring.", ifindex);
507506
return 0;
508507
}
509508

0 commit comments

Comments
 (0)