merge Packet API changes needed for Packet pretty printing.
This commit is contained in:
1 parent
7e9497137e
commit
0da8f5c763
23 files changed
+270
-314
No files matched your search
+2
-3
@@ -100,8 +100,7 @@ Udp::Receive(Packet& packet,
|
||||
Ipv4Address const &destination)
|
||||
{
|
||||
UdpHeader udpHeader;
|
||||
packet.Peek (udpHeader);
|
||||
packet.Remove (udpHeader);
|
||||
packet.RemoveHeader (udpHeader);
|
||||
UdpEndPoint *endPoint = m_endPoints->Lookup (destination, udpHeader.GetDestination (),
|
||||
source, udpHeader.GetSource ());
|
||||
if (endPoint == 0)
|
||||
@@ -126,7 +125,7 @@ Udp::Send (Packet packet,
|
||||
daddr,
|
||||
PROT_NUMBER);
|
||||
|
||||
packet.Add (udpHeader);
|
||||
packet.AddHeader (udpHeader);
|
||||
|
||||
Ipv4 *ipv4 = m_node->GetIpv4 ();
|
||||
if (ipv4 != 0)
|
||||
|
||||
Reference in new issue
Block a user