VirtualBox

Changeset 50074 in vbox


Ignore:
Timestamp:
Jan 14, 2014 5:14:14 AM (11 years ago)
Author:
vboxsync
Message:

The meaning of LWIP_PREFIX_BYTEORDER_FUNCS was inverted in lwip-1.4
and that was not accounted for when old lwipopts.h was used as the
base for the new one.

Undef LWIP_PREFIX_BYTEORDER_FUNCS in lwipopts.h and drop the code that
had to be added to lwip-namespace.h to compensate - it does the same
redefinition dance that lwip's def.h already does.

Same object code is generated.

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/vbox/include/lwip-namespace.h

    r50070 r50074  
    222222#define lwip_etharp_init()
    223223
    224 #ifndef htons
    225 # define htons   lwip_htons
    226 #endif
    227 
    228 #ifndef ntohs
    229 # define ntohs   lwip_ntohs
    230 #endif
    231 
    232 #ifndef htonl
    233 # define htonl   lwip_htonl
    234 #endif
    235 
    236 #ifndef ntohl
    237 # define ntohl   lwip_ntohl
    238 #endif
    239224#endif  /* _VBOX_LWIP_NAMESPACE_H_ */
  • trunk/src/VBox/Devices/Network/lwipopts.h

    r50066 r50074  
    111111
    112112/** Attempt to get rid of htons etc. macro issues. */
    113 #define LWIP_PREFIX_BYTEORDER_FUNCS
     113#undef LWIP_PREFIX_BYTEORDER_FUNCS
    114114
    115115#define LWIP_NOASSERT 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