libnm-core: extract NMSettingIPConfig superclass out of IP4, IP6 classes
Split a base NMSettingIPConfig class out of NMSettingIP4Config and NMSettingIP6Config, and update things accordingly. Further simplifications of now-redundant IPv4-vs-IPv6 code are possible, and should happen in the future.
This commit is contained in:
@@ -86,7 +86,7 @@ add_connection (GDBusProxy *proxy, const char *con_name)
|
||||
/* Build up the 'ipv4' Setting */
|
||||
g_variant_builder_init (&setting_builder, G_VARIANT_TYPE ("a{sv}"));
|
||||
g_variant_builder_add (&setting_builder, "{sv}",
|
||||
NM_SETTING_IP4_CONFIG_METHOD,
|
||||
NM_SETTING_IP_CONFIG_METHOD,
|
||||
g_variant_new_string (NM_SETTING_IP4_CONFIG_METHOD_AUTO));
|
||||
g_variant_builder_add (&connection_builder, "{sa{sv}}",
|
||||
NM_SETTING_IP4_CONFIG_SETTING_NAME,
|
||||
|
Reference in New Issue
Block a user