platform: parse route type from netlink messages

https://bugzilla.redhat.com/show_bug.cgi?id=1821787
This commit is contained in:
Antonio Cardace 2020-07-03 17:16:35 +02:00
parent e3e7bdf96e
commit 04878193f7
No known key found for this signature in database
GPG key ID: 6BF80ABD43E377D3

View file

@ -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);