[ipv6] Match user expectations for IPv6 settings priorities
A reasonable user expectation is that ${net0/ip6} should show the
"highest-priority" of the IPv6 addresses, even when multiple IPv6
addresses are active. The expected order of priority is likely to be
manually-assigned addresses first, then stateful DHCPv6 addresses,
then SLAAC addresses, and lastly link-local addresses.
Using ${priority} to enforce an ordering is undesirable since that
would affect the priority assigned to each of the net<N> blocks as a
whole, so use the sibling ordering capability instead.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1185,6 +1185,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->settings.order = IPV6_ORDER_LINK_LOCAL;
|
||||
|
||||
/* Register settings */
|
||||
if ( ( rc = register_settings ( &ipv6set->settings, parent,
|
||||
|
||||
Reference in New Issue
Block a user