Skip to content

Commit

Permalink
comment on header.SetSource(saddr)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkheirkhah committed Jul 4, 2014
1 parent 14df034 commit 815db4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/internet/model/tcp-l4-protocol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ TcpL4Protocol::SendPacket(Ptr<Packet> packet, const TcpHeader &outgoing, Ipv4Add
{
Ipv4Header header;
header.SetDestination(daddr);
header.SetSource(saddr);
//header.SetSource(saddr);
header.SetProtocol(PROT_NUMBER);
Socket::SocketErrno errno_;
Ptr<Ipv4Route> route;
Expand All @@ -656,6 +656,7 @@ TcpL4Protocol::SendPacket(Ptr<Packet> packet, const TcpHeader &outgoing, Ipv4Add
route = 0;
}
m_downTarget(packet, saddr, daddr, PROT_NUMBER, route);
NS_LOG_INFO("Packet has been sent to lower layer!");
}
else
NS_FATAL_ERROR("Trying to use Tcp on a node without an Ipv4 interface");
Expand Down

0 comments on commit 815db4e

Please sign in to comment.