Author: cgutman
Date: Mon Aug 20 07:49:02 2012
New Revision: 57118
URL: http://svn.reactos.org/svn/reactos?rev=57118&view=rev
Log:
[LWIP]
- Fix address reuse at the TCP layer
Modified:
trunk/reactos/lib/drivers/lwip/src/rostcp.c
Modified: trunk/reactos/lib/drivers/lwip/src/rostcp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/lwip/src/rostc…
==============================================================================
--- trunk/reactos/lib/drivers/lwip/src/rostcp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/lwip/src/rostcp.c [iso-8859-1] Mon Aug 20 07:49:02 2012
@@ -327,12 +327,8 @@
goto done;
}
- /* If this address file is shared, set the SOF_REUSEADDR flag in the PCB */
- ASSERT(msg->Input.Bind.Connection->AddressFile != NULL);
- if (msg->Input.Bind.Connection->AddressFile->Sharers != 1)
- {
- pcb->so_options |= SOF_REUSEADDR;
- }
+ /* We're guaranteed that the local address is valid to bind at this point */
+ pcb->so_options |= SOF_REUSEADDR;
msg->Output.Bind.Error = tcp_bind(pcb,
msg->Input.Bind.IpAddress,
Author: cgutman
Date: Mon Aug 20 07:29:40 2012
New Revision: 57117
URL: http://svn.reactos.org/svn/reactos?rev=57117&view=rev
Log:
[LWIP]
- Route multicast packets properly with SO_REUSE set
Modified:
trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h
Modified: trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/lwip/src/inclu…
==============================================================================
--- trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/lwip/src/include/lwipopts.h [iso-8859-1] Mon Aug 20 07:29:40 2012
@@ -53,6 +53,8 @@
#define TCP_QUEUE_OOSEQ 1
#define SO_REUSE 1
+
+#define SO_REUSE_RXTOALL 1
/* FIXME: These MSS and TCP Window definitions assume an MTU
* of 1500. We need to add some code to lwIP which would allow us