sd-netlink: do not set route type and table by default for RTM_GETROUTE or friends

This commit is contained in:
Yu Watanabe
2021-05-25 08:26:00 +09:00
parent 3ca619061d
commit 3e0eeb8e33
3 changed files with 20 additions and 17 deletions
-3
View File
@@ -265,9 +265,6 @@ int sd_rtnl_message_new_route(sd_netlink *rtnl, sd_netlink_message **ret,
rtm = NLMSG_DATA((*ret)->hdr);
rtm->rtm_family = rtm_family;
rtm->rtm_scope = RT_SCOPE_UNIVERSE;
rtm->rtm_type = RTN_UNICAST;
rtm->rtm_table = RT_TABLE_MAIN;
rtm->rtm_protocol = rtm_protocol;
return 0;