mirror of
https://github.com/systemd/systemd.git
synced 2024-12-02 23:03:50 +08:00
parent
93e583aaba
commit
39713b075f
@ -195,7 +195,7 @@ static int ndisc_request_route(Route *in, Link *link, sd_ndisc_router *rt) {
|
||||
return log_link_warning_errno(link, r, "Failed to get default router MTU from RA: %m");
|
||||
}
|
||||
|
||||
if (link->network->ipv6_accept_ra_use_hop_limit) {
|
||||
if (link->network->ipv6_accept_ra_use_hop_limit) {
|
||||
r = sd_ndisc_router_get_hop_limit(rt, &hop_limit);
|
||||
if (r < 0 && r != -ENODATA)
|
||||
return log_link_warning_errno(link, r, "Failed to get default router hop limit from RA: %m");
|
||||
@ -212,7 +212,6 @@ static int ndisc_request_route(Route *in, Link *link, sd_ndisc_router *rt) {
|
||||
route->quickack = link->network->ipv6_accept_ra_quickack;
|
||||
if (route->mtu == 0)
|
||||
route->mtu = mtu;
|
||||
|
||||
if (route->hop_limit == 0)
|
||||
route->hop_limit = hop_limit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user