VirtualBox

Changeset 76170 in vbox


Ignore:
Timestamp:
Dec 12, 2018 12:58:13 AM (6 years ago)
Author:
vboxsync
Message:

Main/DHCPServer: (bugref:9288) NATNetwork::i_updateDomainNameServerOption
RTCidrStrToIPv4, surprisingly, returns its values in host order.
Fixup the results to be in network order as the rest of the function
expects (should use the new RTNetStrToIPv4Cidr here).

File:
1 edited

Legend:

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

    r76153 r76170  
    669669    }
    670670
     671    /* XXX: these are returned, surprisingly, in host order */
     672    networkid.u = RT_H2N_U32(networkid.u);
     673    netmask.u = RT_H2N_U32(netmask.u);
     674
    671675    com::SafeArray<BSTR> nameServers;
    672676    HRESULT hrc = host->COMGETTER(NameServers)(ComSafeArrayAsOutParam(nameServers));
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