Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known)

This commit is contained in:
Tommaso Pecorella
2015-06-09 23:36:57 +02:00
parent f47b9bce81
commit ba17f6168e
2 changed files with 3 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ New user-visible features
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)"

View File

@@ -537,6 +537,7 @@ TcpL4Protocol::Send (Ptr<Packet> packet,
if (ipv4 != 0)
{
Ipv4Header header;
header.SetSource (saddr);
header.SetDestination (daddr);
header.SetProtocol (PROT_NUMBER);
Socket::SocketErrno errno_;
@@ -580,6 +581,7 @@ TcpL4Protocol::Send (Ptr<Packet> packet,
if (ipv6 != 0)
{
Ipv6Header header;
header.SetSourceAddress (saddr);
header.SetDestinationAddress (daddr);
header.SetNextHeader (PROT_NUMBER);
Socket::SocketErrno errno_;