diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-24 23:49:51 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-25 01:26:00 +0200 |
commit | 3e0eeb8e33070616adf090acb656d97c716e00b3 (patch) | |
tree | 9e1d38203c5a8241c9fe0e5893c4423e6ef8c8fa /src/shared/local-addresses.c | |
parent | sd-netlink: do not set action for RTM_GETRULE message (diff) | |
download | systemd-3e0eeb8e33070616adf090acb656d97c716e00b3.tar.xz systemd-3e0eeb8e33070616adf090acb656d97c716e00b3.zip |
sd-netlink: do not set route type and table by default for RTM_GETROUTE or friends
Diffstat (limited to 'src/shared/local-addresses.c')
-rw-r--r-- | src/shared/local-addresses.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/local-addresses.c b/src/shared/local-addresses.c index f037c5281f..29ab9241e9 100644 --- a/src/shared/local-addresses.c +++ b/src/shared/local-addresses.c @@ -228,6 +228,14 @@ int local_gateways( if (r < 0) return r; + r = sd_rtnl_message_route_set_type(req, RTN_UNICAST); + if (r < 0) + return r; + + r = sd_rtnl_message_route_set_table(req, RT_TABLE_MAIN); + if (r < 0) + return r; + r = sd_netlink_message_request_dump(req, true); if (r < 0) return r; |