Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known)
--- a/RELEASE_NOTES Tue Jun 09 23:41:06 2015 +0200
+++ b/RELEASE_NOTES Tue Jun 09 23:36:57 2015 +0200
@@ -25,6 +25,7 @@
Bugs fixed
----------
- Bug 1736 - default dot11EDCATableMSDULifetime
+- Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known)
- Bug 2126 - LrWpanNetDevice silently accepts no mobility on the node
- Bug 2135 - TCP doesn't honor the socket's output interface
- Bug 2136 - The usage of tid in wifi and wave module shall be "if (tid > 7)" rather than "if (tid >= 7)"
--- a/src/internet/model/tcp-l4-protocol.cc Tue Jun 09 23:41:06 2015 +0200
+++ b/src/internet/model/tcp-l4-protocol.cc Tue Jun 09 23:36:57 2015 +0200
@@ -537,6 +537,7 @@
if (ipv4 != 0)
{
Ipv4Header header;
+ header.SetSource (saddr);
header.SetDestination (daddr);
header.SetProtocol (PROT_NUMBER);
Socket::SocketErrno errno_;
@@ -580,6 +581,7 @@
if (ipv6 != 0)
{
Ipv6Header header;
+ header.SetSourceAddress (saddr);
header.SetDestinationAddress (daddr);
header.SetNextHeader (PROT_NUMBER);
Socket::SocketErrno errno_;