Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known)
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Tue, 09 Jun 2015 23:36:57 +0200
changeset 11434 317ae8a858d8
parent 11433 fdf9a6da39fa
child 11435 f15217f1b5d0
Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known)
RELEASE_NOTES
src/internet/model/tcp-l4-protocol.cc
--- 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_;