VirtualBox

Changeset 47027 in vbox for trunk


Ignore:
Timestamp:
Jul 7, 2013 7:20:36 PM (12 years ago)
Author:
vboxsync
Message:

There's no point in byte-swapping an address twice.
RT_MAKE_U32_FROM_U8( 10, 0, 2, 2) is already in network byte order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetNAT.cpp

    r44529 r47027  
    168168    m_MacAddress.au8[4]     = 0x41;
    169169    m_MacAddress.au8[5]     = 0x42;
    170     m_Ipv4Address.u         = RT_H2N_U32_C(RT_BSWAP_U32_C(RT_MAKE_U32_FROM_U8( 10,  0,  2,  2)));
     170    m_Ipv4Address.u         = RT_MAKE_U32_FROM_U8( 10,  0,  2,  2); // NB: big-endian
    171171    m_Ipv4Netmask.u         = RT_H2N_U32_C(0xffffff);
    172172    cPkt = 0;
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