diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-06 09:04:10 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-11 22:37:00 +0900 |
commit | 6545067aa950cf0af740a6fad88ff56d1b3fd40a (patch) | |
tree | 81fc62b67c05666aca0ae7ec4add27c2557e560a | |
parent | 73854ba1a01f67fec45b767c8f4f69858545264d (diff) | |
download | systemd-6545067aa950cf0af740a6fad88ff56d1b3fd40a.tar.gz systemd-6545067aa950cf0af740a6fad88ff56d1b3fd40a.tar.bz2 systemd-6545067aa950cf0af740a6fad88ff56d1b3fd40a.zip |
network: re-assign static routes when dynamic address is updated
Follow-up for b5799eeb0787deacb30d5984f6ac78f88f23b97e.
Closes #7354.
-rw-r--r-- | src/network/networkd-dhcp6.c | 2 | ||||
-rw-r--r-- | src/network/networkd-ndisc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c index b34fe5931c..0a73ffc848 100644 --- a/src/network/networkd-dhcp6.c +++ b/src/network/networkd-dhcp6.c @@ -413,6 +413,8 @@ static int dhcp6_address_handler(sd_netlink *rtnl, sd_netlink_message *m, Link * if (r >= 0) manager_rtnl_process_address(rtnl, m, link->manager); + link_request_set_routes(link); + return 1; } diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index dcf9aac1c5..39b66d8f6d 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -33,6 +33,7 @@ static int ndisc_netlink_route_message_handler(sd_netlink *rtnl, sd_netlink_mess if (link->ndisc_messages == 0) { link->ndisc_configured = true; + link_request_set_routes(link); link_check_ready(link); } @@ -55,6 +56,7 @@ static int ndisc_netlink_address_message_handler(sd_netlink *rtnl, sd_netlink_me if (link->ndisc_messages == 0) { link->ndisc_configured = true; + link_request_set_routes(link); link_check_ready(link); } |