summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-12 12:01:42 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-08-10 14:43:34 +0900
commitd09a179e6973fb1da4a0366c25d9d16679655f2d (patch)
treef5e1302f90002b2cf25c1f479e9f3b9f1682895c /src/network/networkd-link.h
parent63c00743f448300783e1e5b648a57893695ee89f (diff)
downloadsystemd-d09a179e6973fb1da4a0366c25d9d16679655f2d.tar.gz
network: reconfigure link after coming back from sleep
Previously, link was reconfigured with `link_carrier_reset()`, but it just re-request to configure static addresses, routes, etc, and restart engines (e.g. DHCP client). However, after coming back from sleep, several link information may be changed, especially the wifi access point may be different. So, we may need to reconfigure the interface.
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r--src/network/networkd-link.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h
index 4077ccaf09..79400dee2e 100644
--- a/src/network/networkd-link.h
+++ b/src/network/networkd-link.h
@@ -232,7 +232,6 @@ void link_check_ready(Link *link);
void link_update_operstate(Link *link, bool also_update_bond_master);
-int link_carrier_reset(Link *link);
bool link_has_carrier(Link *link);
bool link_ipv6_enabled(Link *link);
@@ -247,6 +246,7 @@ const char* link_state_to_string(LinkState s) _const_;
LinkState link_state_from_string(const char *s) _pure_;
int link_reconfigure(Link *link, bool force);
+int link_reconfigure_after_sleep(Link *link);
int manager_udev_process_link(sd_device_monitor *monitor, sd_device *device, void *userdata);
int manager_rtnl_process_link(sd_netlink *rtnl, sd_netlink_message *message, Manager *m);