mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 00:40:19 +01:00
platform: parse route type from netlink messages
https://bugzilla.redhat.com/show_bug.cgi?id=1821787
This commit is contained in:
parent
e3e7bdf96e
commit
04878193f7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue