]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: remove route - drop route type from netlink message. (#7240)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Thu, 2 Nov 2017 12:36:03 +0000 (18:06 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Nov 2017 12:36:03 +0000 (21:36 +0900)
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

src/network/networkd-route.c

index cf420379150cfea11f6a562d54d3051218bc763d..163146da60105677fd4ae38222acb3cdaf6ac2a6 100644 (file)
@@ -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)