mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 12:00:11 +01:00
nm-device: prefer manually configured addresses to automatic
This bumps L3_CONFIG_DATA_TYPE_MANUALIP to be the most important address
source; which is what had been the case before NetworkManager/next and
is presumably what the user expects.
It also comes into play for iBFT-booted machines, where iBFT contains a
permanent address (no lifetime data), while DHCP might lease out the
same one. In that case, expiry of the latter could potentially disrupt
connectivity to a vital storage volume.
Fixes: 14962cb414 ('merge: branch 'next''):
https://bugzilla.redhat.com/show_bug.cgi?id=2013921
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1011
This commit is contained in:
parent
249ab3a5cd
commit
af1903fe3f
2 changed files with 4 additions and 4 deletions
|
|
@ -139,6 +139,8 @@ typedef enum {
|
|||
* their relative order matters: higher numbers in this enum means more
|
||||
* important (and during merge overwrites other settings). */
|
||||
|
||||
L3_CONFIG_DATA_TYPE_MANUALIP,
|
||||
|
||||
L3_CONFIG_DATA_TYPE_LL_4,
|
||||
L3_CONFIG_DATA_TYPE_LL_6,
|
||||
|
||||
|
|
@ -181,8 +183,6 @@ typedef enum {
|
|||
_t; \
|
||||
})
|
||||
|
||||
L3_CONFIG_DATA_TYPE_MANUALIP,
|
||||
|
||||
_L3_CONFIG_DATA_TYPE_NUM,
|
||||
_L3_CONFIG_DATA_TYPE_NONE,
|
||||
_L3_CONFIG_DATA_TYPE_ACD_ONLY,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
#include "libnm-platform/nmp-object.h"
|
||||
#include "nm-l3-config-data.h"
|
||||
|
||||
#define NM_L3CFG_CONFIG_PRIORITY_IPV4LL 0
|
||||
#define NM_L3CFG_CONFIG_PRIORITY_IPV6LL 0
|
||||
#define NM_L3CFG_CONFIG_PRIORITY_IPV4LL 1
|
||||
#define NM_L3CFG_CONFIG_PRIORITY_IPV6LL 1
|
||||
#define NM_ACD_TIMEOUT_RFC5227_MSEC 9000u
|
||||
|
||||
#define NM_TYPE_L3CFG (nm_l3cfg_get_type())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue