NetworkManager/src/core/ppp
Beniamino Galvani b2e559fab2 core: initialize l3cd dns-priority for ppp and wwan
For devices that configure IP by themselves (by returning
"->ready_for_ip_config() = TRUE" and implementing
->act_stage3_ip_config()), we skip manual configuration. Currently,
manual configuration is the only one that sets flag HAS_DNS_PRIORITY
into the resulting l3cd.

So, the merged l3cd for such devices misses a dns-priority and is
ignored by the DNS manager.

Explicitly initialize the priority to 0; in this way, the default
value for the device will be set in the final l3cd during the merge.

Fixes: 58287cbcc0 ('core: rework IP configuration in NetworkManager using layer 3 configuration')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/931
2022-02-28 10:08:24 +01:00
..
meson.build build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-ppp-manager-call.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-manager-call.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-manager.c core: initialize l3cd dns-priority for ppp and wwan 2022-02-28 10:08:24 +01:00
nm-ppp-manager.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-mgr.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-mgr.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-plugin-api.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-plugin.ver all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-ppp-status.h core: rework IP configuration in NetworkManager using layer 3 configuration 2021-11-18 16:21:29 +01:00
nm-pppd-plugin.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-pppd-plugin.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00