mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-26 10:07:06 +08:00
Rename IP_HDRINCL to LWIP_IP_HDRINCL
In the BSD socket API world, IP_HDRINCL is a socket option for "raw" sockets that indicates whether sent packets already include an IP header. Within lwIP, "IP_HDRINCL" is redefined as a special value that indicates to lwIP-internal functions that an IP header is already included. While somewhat related, the two meanings are different and, on platforms that define the IP_HDRINCL socket option, this results in a conflict. This patch renames the lwIP one to "LWIP_IP_HDRINCL", thus resolving the conflict.
This commit is contained in:
committed by
sg
parent
6383ef88b4
commit
02221cf5dc
@@ -63,10 +63,7 @@ extern "C" {
|
||||
/* This is passed as the destination address to ip_output_if (not
|
||||
to ip_output), meaning that an IP header already is constructed
|
||||
in the pbuf. This is used when TCP retransmits. */
|
||||
#ifdef IP_HDRINCL
|
||||
#undef IP_HDRINCL
|
||||
#endif /* IP_HDRINCL */
|
||||
#define IP_HDRINCL NULL
|
||||
#define LWIP_IP_HDRINCL NULL
|
||||
|
||||
/** pbufs passed to IP must have a ref-count of 1 as their payload pointer
|
||||
gets altered as the packet is passed down the stack */
|
||||
|
||||
Reference in New Issue
Block a user