VirtualBox

Changeset 50073 in vbox


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

Drop lwip-namespace.h renaming for VBoxNetNAT. It is only necessary
in VBoxDD to avoid conflicts with slirp.

#undef LWIP_PREFIX_BYTEORDER_FUNCS - its meaning was inverted in
lwip-1.4 and lwip-namespace.h has to redo the same redefinition dance
that lwip's def.h does when LWIP_PREFIX_BYTEORDER_FUNCS is undefined
(this is to be addressed for VBoxDD separately).

Debugging is more comfortable when names are not randomly renamed with
some of them being original short names and some redefined with lwip_
prefix.

Almost the same object code is generated, with slighly different
offsets into .rodata because of changed func.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/lwipopts.h

    r50069 r50073  
    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
     
    217217#define free(x) RTMemFree(x)
    218218
    219 
    220 #include "lwip-namespace.h"
    221 
    222219#endif /* _VBOX_NETNAT_LWIP_OPTS_H_ */
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