mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 16:00:21 +01:00
l3cfg: drop unused NM_L3_CONFIG_MERGE_FLAGS_EXTERNAL
The current approach also tracks external configuration in an NMIP[46]Config, and we need to special handle those. In the future, we only want to track what we actually want to configure. So this flag won't be used with NML3Cfg/NML3ConfigData.
This commit is contained in:
parent
38b2239146
commit
41b9d44f9b
2 changed files with 0 additions and 21 deletions
|
|
@ -2028,25 +2028,6 @@ nm_l3_config_data_merge (NML3ConfigData *self,
|
|||
&& !hook_add_addr (src, obj, hook_user_data))
|
||||
continue;
|
||||
|
||||
if ( NM_FLAGS_HAS (merge_flags, NM_L3_CONFIG_MERGE_FLAGS_EXTERNAL)
|
||||
&& !NMP_OBJECT_CAST_IP_ADDRESS (obj)->external) {
|
||||
NMPlatformIPXAddress a;
|
||||
|
||||
if (IS_IPv4)
|
||||
a.a4 = *NMP_OBJECT_CAST_IP4_ADDRESS (obj);
|
||||
else
|
||||
a.a6 = *NMP_OBJECT_CAST_IP6_ADDRESS (obj);
|
||||
a.ax.ifindex = self->ifindex;
|
||||
a.ax.external = TRUE;
|
||||
nm_l3_config_data_add_address_full (self,
|
||||
addr_family,
|
||||
NULL,
|
||||
&a.ax,
|
||||
NM_L3_CONFIG_ADD_FLAGS_EXCLUSIVE,
|
||||
NULL);
|
||||
continue;
|
||||
}
|
||||
|
||||
nm_l3_config_data_add_address_full (self,
|
||||
addr_family,
|
||||
obj,
|
||||
|
|
|
|||
|
|
@ -51,14 +51,12 @@ typedef enum {
|
|||
* Note that if the respective NML3ConfigData has NM_L3_CONFIG_DAT_FLAGS_IGNORE_MERGE_NO_DEFAULT_ROUTES
|
||||
* set, this flag gets ignored during merge.
|
||||
* @NM_L3_CONFIG_MERGE_FLAGS_NO_DNS: don't merge DNS information
|
||||
* @NM_L3_CONFIG_MERGE_FLAGS_EXTERNAL: mark new addresses as external
|
||||
*/
|
||||
typedef enum {
|
||||
NM_L3_CONFIG_MERGE_FLAGS_NONE = 0,
|
||||
NM_L3_CONFIG_MERGE_FLAGS_NO_ROUTES = (1LL << 0),
|
||||
NM_L3_CONFIG_MERGE_FLAGS_NO_DEFAULT_ROUTES = (1LL << 1),
|
||||
NM_L3_CONFIG_MERGE_FLAGS_NO_DNS = (1LL << 2),
|
||||
NM_L3_CONFIG_MERGE_FLAGS_EXTERNAL = (1LL << 3),
|
||||
} NML3ConfigMergeFlags;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue