add Ipv4 and Udp node capabilities, rework Copy methods to include an extra Node * argument

This commit is contained in:
Mathieu Lacage
2007-02-12 13:06:05 +01:00
parent 96d809c983
commit ea343befaf
22 changed files with 256 additions and 133 deletions

View File

@@ -161,12 +161,7 @@ UdpSocket::ForwardUp (Packet &p, Ipv4Address saddr, uint16_t sport)
Udp *
UdpSocket::GetUdp (void) const
{
if (m_node->GetIpv4L4Demux () != 0)
{
// udp protocol number
return static_cast<Udp *> (m_node->GetIpv4L4Demux ()->Lookup (17));
}
return 0;
return m_node->GetUdp ();
}
}//namespace ns3