diff options
author | Susant Sahani <ssahani@redhat.com> | 2019-04-29 10:32:34 +0530 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-29 18:13:31 +0200 |
commit | b5799eeb0787deacb30d5984f6ac78f88f23b97e (patch) | |
tree | e7db71c041770eaac3efe5da96fe3ddc2946700d /src/network/networkd-link.h | |
parent | 6dc14d73664390682d47d7e5bcbdbb362d04f623 (diff) | |
download | systemd-b5799eeb0787deacb30d5984f6ac78f88f23b97e.tar.gz |
networkd: Add back static routes after DHCPv4 lease expires.
1. When the DHCPv4 lease expires kernel removes the route. So add it back
when we gain lease again.
Closes https://github.com/systemd/systemd/issues/12426
2. When UseRoutes=false do not remove router
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r-- | src/network/networkd-link.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h index e5497379d7..7d8808e400 100644 --- a/src/network/networkd-link.h +++ b/src/network/networkd-link.h @@ -180,6 +180,7 @@ int link_send_changed(Link *link, const char *property, ...) _sentinel_; uint32_t link_get_vrf_table(Link *link); uint32_t link_get_dhcp_route_table(Link *link); uint32_t link_get_ipv6_accept_ra_route_table(Link *link); +int link_request_set_routes(Link *link); #define ADDRESS_FMT_VAL(address) \ be32toh((address).s_addr) >> 24, \ |