]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ipv6] Rename ipv6_scope to ipv6_settings_scope
authorMichael Brown <mcb30@ipxe.org>
Thu, 21 Jul 2016 14:46:51 +0000 (15:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 21 Jul 2016 14:47:45 +0000 (15:47 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/settings.h
src/net/ipv6.c
src/net/ndp.c

index 8cc0b6bb71385d22f97a36e68952893298e60b21..341fc3c7f795018cc2090a2f9d6ba21a0f81d433 100644 (file)
@@ -286,7 +286,7 @@ struct builtin_setting {
 extern const struct settings_scope builtin_scope;
 
 /** IPv6 setting scope */
-extern const struct settings_scope ipv6_scope;
+extern const struct settings_scope ipv6_settings_scope;
 
 /** DHCPv6 setting scope */
 extern const struct settings_scope dhcpv6_scope;
index d2a173120aac8df703bdd242083714a951c3da87..c4e1f7088c9d6b345576f0911f24f94222640091 100644 (file)
@@ -1040,14 +1040,14 @@ int format_ipv6_setting ( const struct setting_type *type __unused,
 }
 
 /** IPv6 settings scope */
-const struct settings_scope ipv6_scope;
+const struct settings_scope ipv6_settings_scope;
 
 /** IPv6 address setting */
 const struct setting ip6_setting __setting ( SETTING_IP6, ip6 ) = {
        .name = "ip6",
        .description = "IPv6 address",
        .type = &setting_type_ipv6,
-       .scope = &ipv6_scope,
+       .scope = &ipv6_settings_scope,
 };
 
 /** IPv6 prefix length setting */
@@ -1055,7 +1055,7 @@ const struct setting len6_setting __setting ( SETTING_IP6, len6 ) = {
        .name = "len6",
        .description = "IPv6 prefix length",
        .type = &setting_type_int8,
-       .scope = &ipv6_scope,
+       .scope = &ipv6_settings_scope,
 };
 
 /** Default gateway setting */
@@ -1063,7 +1063,7 @@ const struct setting gateway6_setting __setting ( SETTING_IP6, gateway6 ) = {
        .name = "gateway6",
        .description = "IPv6 gateway",
        .type = &setting_type_ipv6,
-       .scope = &ipv6_scope,
+       .scope = &ipv6_settings_scope,
 };
 
 /**
@@ -1076,7 +1076,7 @@ const struct setting gateway6_setting __setting ( SETTING_IP6, gateway6 ) = {
 static int ipv6_applies ( struct settings *settings __unused,
                          const struct setting *setting ) {
 
-       return ( setting->scope == &ipv6_scope );
+       return ( setting->scope == &ipv6_settings_scope );
 }
 
 /**
@@ -1162,7 +1162,7 @@ static int ipv6_register_settings ( struct net_device *netdev ) {
        }
        ref_init ( &ipv6set->refcnt, NULL );
        settings_init ( &ipv6set->settings, &ipv6_settings_operations,
-                       &ipv6set->refcnt, &ipv6_scope );
+                       &ipv6set->refcnt, &ipv6_settings_scope );
        ipv6set->settings.order = IPV6_ORDER_LINK_LOCAL;
 
        /* Register settings */
index 21bbd99954f8e2fd741aba83fd606c8caecdbf0c..f28e71cbde1564c8ef8cce227b0f47e96fffa374 100644 (file)
@@ -755,7 +755,7 @@ static struct settings_operations ndp_settings_operations = {
 static int ndp_prefix_applies ( struct settings *settings __unused,
                                const struct setting *setting ) {
 
-       return ( setting->scope == &ipv6_scope );
+       return ( setting->scope == &ipv6_settings_scope );
 }
 
 /**