From: Susant Sahani <145210+ssahani@users.noreply.github.com> Date: Thu, 2 Nov 2017 12:36:03 +0000 (+0530) Subject: networkd: remove route - drop route type from netlink message. (#7240) X-Git-Tag: v236~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74d42cd92346a1e0aa79f760a8621f0f896aa408;p=thirdparty%2Fsystemd.git networkd: remove route - drop route type from netlink message. (#7240) During startup of networkd we try to drop the configs. While droping routes we filling ip route type and because of which message like ``` host: Could not drop route: Invalid argument host: Could not drop route: Invalid argument ``` are shown. Closed #6929 --- diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index cf420379150..163146da601 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -461,10 +461,6 @@ int route_remove(Route *route, Link *link, if (r < 0) return log_error_errno(r, "Could not append RTA_PRIORITY attribute: %m"); - r = sd_rtnl_message_route_set_type(req, route->type); - if (r < 0) - return log_error_errno(r, "Could not set route type: %m"); - if (!IN_SET(route->type, RTN_UNREACHABLE, RTN_PROHIBIT, RTN_BLACKHOLE)) { r = sd_netlink_message_append_u32(req, RTA_OIF, link->ifindex); if (r < 0)