diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-02 06:28:04 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-02 06:28:44 +0100 |
commit | 10ff4eb621e72918e974dc55d6d1f9f58335ae42 (patch) | |
tree | 3f0b728bb4cdbce20254685fc1155c168d54cae7 /src/network/networkd-ndisc.c | |
parent | network: add assertions (diff) | |
download | systemd-10ff4eb621e72918e974dc55d6d1f9f58335ae42.tar.xz systemd-10ff4eb621e72918e974dc55d6d1f9f58335ae42.zip |
network: rename ndisc_route_handler() to ndisc_netlink_message_handler()
As it is also called when configuring addresses.
Diffstat (limited to 'src/network/networkd-ndisc.c')
-rw-r--r-- | src/network/networkd-ndisc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 8596db11c7..b3b240e3fd 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -16,7 +16,7 @@ #define NDISC_RDNSS_MAX 64U #define NDISC_PREFIX_LFT_MIN 7200U -static int ndisc_route_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { +static int ndisc_netlink_message_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { Link *link = userdata; int r; @@ -111,7 +111,7 @@ static int ndisc_router_process_default(Link *link, sd_ndisc_router *rt) { route->lifetime = time_now + lifetime * USEC_PER_SEC; route->mtu = mtu; - r = route_configure(route, link, ndisc_route_handler); + r = route_configure(route, link, ndisc_netlink_message_handler); if (r < 0) { log_link_warning_errno(link, r, "Could not set default route: %m"); link_enter_failed(link); @@ -199,7 +199,7 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r if (address->cinfo.ifa_valid == 0) return 0; - r = address_configure(address, link, ndisc_route_handler, true); + r = address_configure(address, link, ndisc_netlink_message_handler, true); if (r < 0) { log_link_warning_errno(link, r, "Could not set SLAAC address: %m"); link_enter_failed(link); @@ -249,7 +249,7 @@ static int ndisc_router_process_onlink_prefix(Link *link, sd_ndisc_router *rt) { if (r < 0) return log_link_error_errno(link, r, "Failed to get prefix address: %m"); - r = route_configure(route, link, ndisc_route_handler); + r = route_configure(route, link, ndisc_netlink_message_handler); if (r < 0) { log_link_warning_errno(link, r, "Could not set prefix route: %m"); link_enter_failed(link); @@ -310,7 +310,7 @@ static int ndisc_router_process_route(Link *link, sd_ndisc_router *rt) { if (r < 0) return log_link_error_errno(link, r, "Failed to get route address: %m"); - r = route_configure(route, link, ndisc_route_handler); + r = route_configure(route, link, ndisc_netlink_message_handler); if (r < 0) { log_link_warning_errno(link, r, "Could not set additional route: %m"); link_enter_failed(link); |