mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 16:00:07 +01:00
initrd: generate IPv6 profiles with ipv6.addr-gen-mode=eui64
https://bugzilla.redhat.com/show_bug.cgi?id=1779389
This commit is contained in:
parent
c15682558c
commit
ea4e95ec33
3 changed files with 9 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ add_conn (GHashTable *connections,
|
|||
g_object_set (setting,
|
||||
NM_SETTING_IP_CONFIG_METHOD, NM_SETTING_IP4_CONFIG_METHOD_AUTO,
|
||||
NM_SETTING_IP_CONFIG_MAY_FAIL, TRUE,
|
||||
NM_SETTING_IP6_CONFIG_ADDR_GEN_MODE, (int) NM_SETTING_IP6_CONFIG_ADDR_GEN_MODE_EUI64,
|
||||
NULL);
|
||||
|
||||
setting = nm_setting_connection_new ();
|
||||
|
|
|
|||
|
|
@ -290,6 +290,10 @@ nmi_dt_reader_parse (const char *sysfs_dir)
|
|||
s_ip6 = nm_setting_ip6_config_new ();
|
||||
nm_connection_add_setting (connection, s_ip6);
|
||||
|
||||
g_object_set (s_ip6,
|
||||
NM_SETTING_IP6_CONFIG_ADDR_GEN_MODE, (int) NM_SETTING_IP6_CONFIG_ADDR_GEN_MODE_EUI64,
|
||||
NULL);
|
||||
|
||||
if (!bootp && dt_get_property (base, "chosen", "bootp-response", NULL, NULL))
|
||||
bootp = TRUE;
|
||||
|
||||
|
|
|
|||
|
|
@ -157,6 +157,10 @@ ip_setting_add_from_block (GHashTable *nic,
|
|||
if (!s_ip6) {
|
||||
s_ip6 = (NMSettingIPConfig *) nm_setting_ip6_config_new ();
|
||||
nm_connection_add_setting (connection, (NMSetting *) s_ip6);
|
||||
|
||||
g_object_set (s_ip6,
|
||||
NM_SETTING_IP6_CONFIG_ADDR_GEN_MODE, (int) NM_SETTING_IP6_CONFIG_ADDR_GEN_MODE_EUI64,
|
||||
NULL);
|
||||
}
|
||||
|
||||
family = guess_ip_address_family (s_ipaddr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue