mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 02:40:11 +01:00
dhcp: use nm_dhcp_option_create_options_dict() in nm_dhcp_client_handle_event()
The point of using this trivial helper function is to have one function
that is related to the construction of the options dictionary, that we
can search for.
It answers the question, where do we create a option hash (at `git grep
nm_dhcp_option_create_options_dict`).
(cherry picked from commit ccbe76b81d)
This commit is contained in:
parent
63a6bc1bc9
commit
2535395a8c
1 changed files with 1 additions and 1 deletions
|
|
@ -1612,7 +1612,7 @@ nm_dhcp_client_handle_event(gpointer unused,
|
|||
GVariant *value;
|
||||
|
||||
/* Copy options */
|
||||
str_options = g_hash_table_new_full(nm_str_hash, g_str_equal, g_free, g_free);
|
||||
str_options = nm_dhcp_option_create_options_dict(FALSE);
|
||||
g_variant_iter_init(&iter, options);
|
||||
while (g_variant_iter_next(&iter, "{&sv}", &name, &value)) {
|
||||
maybe_add_option(self, str_options, name, value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue