VirtualBox

Ignore:
Timestamp:
Jan 19, 2022 5:02:18 PM (3 years ago)
Author:
vboxsync
Message:

NAT/Net: When enabling IPv6, check if IPv6 prefix is set. If it's not

  • set it to the default one (based on IPv4). bugref:8124.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp

    r93115 r93348  
    411411        if (RT_BOOL(aIPv6Enabled) == m->s.fIPv6Enabled)
    412412            return S_OK;
     413
     414        /*
     415         * If we are enabling ipv6 and the prefix is not set, provide
     416         * the default based on ipv4.
     417         */
     418        if (aIPv6Enabled && m->s.strIPv6Prefix.isEmpty())
     419            i_recalculateIPv6Prefix();
    413420
    414421        m->s.fIPv6Enabled = RT_BOOL(aIPv6Enabled);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette