diff options
author | Antonio Cardace <acardace@redhat.com> | 2020-07-03 17:16:35 +0200 |
---|---|---|
committer | Antonio Cardace <acardace@redhat.com> | 2020-07-08 15:10:36 +0200 |
commit | 04878193f754d1f7708b70f4d146caa48d276873 (patch) | |
tree | 67b16b3173f56292bf9c74ca7fed4240a9c2d815 | |
parent | e3e7bdf96ef7a1c551dab375386e62d12689775c (diff) | |
download | NetworkManager-04878193f754d1f7708b70f4d146caa48d276873.tar.gz |
platform: parse route type from netlink messages
https://bugzilla.redhat.com/show_bug.cgi?id=1821787
-rw-r--r-- | src/platform/nm-linux-platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 40451df820..b05c50de48 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -3398,6 +3398,7 @@ rta_multipath_done: obj = nmp_object_new (is_v4 ? NMP_OBJECT_TYPE_IP4_ROUTE : NMP_OBJECT_TYPE_IP6_ROUTE, NULL); + obj->ip_route.type_coerced = nm_platform_route_type_coerce (rtm->rtm_type); obj->ip_route.table_coerced = nm_platform_route_table_coerce ( tb[RTA_TABLE] ? nla_get_u32 (tb[RTA_TABLE]) : (guint32) rtm->rtm_table); |