VirtualBox

儲存庫 vbox 的更動 49854


忽略:
時間撮記:
2013-12-9 下午08:52:21 (11 年 以前)
作者:
vboxsync
訊息:

"IP_HDRINCL" is a name of a socket option and the #undef of it is a
good sign that reusing this name was rather unfortuate. Other naming
conflicts are mostly restricted to "lwip/sockets.h" but this one is
pretty nasty since it affects all code that uses lwip. Rename it out
of the way in "lwip/ip.h" and do undef/redef dance in the few lwip
files that use this name to minimize diffs to upstream.

位置:
trunk/src/VBox/Devices/Network/lwip-new/src
檔案:
修改 4 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv4/icmp.c

    r49514 r49854  
    5252
    5353#include <string.h>
     54
     55/* see comment in "lwip/ip.h" */
     56#ifdef IP_HDRINCL
     57#undef IP_HDRINCL
     58#endif
     59#define IP_HDRINCL LWIP_IP_HDRINCL
    5460
    5561/** Small optimization: set to 0 if incoming PBUF_POOL pbuf always can be
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv4/ip4.c

    r49514 r49854  
    5858
    5959#include <string.h>
     60
     61/* see comment in "lwip/ip.h" */
     62#ifdef IP_HDRINCL
     63#undef IP_HDRINCL
     64#endif
     65#define IP_HDRINCL LWIP_IP_HDRINCL
    6066
    6167/** Set this to 0 in the rare case of wanting to call an extra function to
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv6/ip6.c

    r49592 r49854  
    6060#include "lwip/debug.h"
    6161#include "lwip/stats.h"
     62
     63/* see comment in "lwip/ip.h" */
     64#ifdef IP_HDRINCL
     65#undef IP_HDRINCL
     66#endif
     67#define IP_HDRINCL LWIP_IP_HDRINCL
    6268
    6369#if LWIP_CONNECTION_PROXY
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/ip.h

    r47886 r49854  
    5050   to ip_output), meaning that an IP header already is constructed
    5151   in the pbuf. This is used when TCP retransmits. */
     52#if 0
     53/* XXX: "IP_HDRINCL" is a name of a socket option and the #undef below
     54   is a good sign that reusing this name was rather unfortuate.  Other
     55   naming conflicts are mostly restricted to "lwip/sockets.h" but this
     56   one is pretty nasty since it affects all code that uses lwip.
     57   Rename it out of the way here and do undef/redef dance in the few
     58   lwip files that use this name to minimize diffs to upstream. */
    5259#ifdef IP_HDRINCL
    5360#undef IP_HDRINCL
    5461#endif /* IP_HDRINCL */
    55 #define IP_HDRINCL  NULL
     62#endif /* XXX: 0 */
     63#define LWIP_IP_HDRINCL  NULL
    5664
    5765#if LWIP_NETIF_HWADDRHINT
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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