internet: (fixes #2440) SocketIpTosTag might be added twice if a packet is sent multiple times
This commit is contained in:
@@ -489,7 +489,8 @@ UdpSocketImpl::DoSendTo (Ptr<Packet> p, Ipv4Address dest, uint16_t port)
|
||||
{
|
||||
SocketIpTosTag ipTosTag;
|
||||
ipTosTag.SetTos (GetIpTos ());
|
||||
p->AddPacketTag (ipTosTag);
|
||||
// This packet may already have a SocketIpTosTag (see BUG 2440)
|
||||
p->ReplacePacketTag (ipTosTag);
|
||||
}
|
||||
|
||||
Ptr<Ipv4> ipv4 = m_node->GetObject<Ipv4> ();
|
||||
|
||||
Reference in New Issue
Block a user