|
18 |
* Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr> |
18 |
* Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr> |
19 |
*/ |
19 |
*/ |
20 |
|
20 |
|
|
|
21 |
#include <netinet/in.h> |
21 |
#include "ns3/inet6-socket-address.h" |
22 |
#include "ns3/inet6-socket-address.h" |
22 |
#include "ns3/node.h" |
23 |
#include "ns3/node.h" |
23 |
#include "ns3/packet.h" |
24 |
#include "ns3/packet.h" |
|
265 |
if (data.packet->GetSize () > maxSize) |
266 |
if (data.packet->GetSize () > maxSize) |
266 |
{ |
267 |
{ |
267 |
Ptr<Packet> first = data.packet->CreateFragment (0, maxSize); |
268 |
Ptr<Packet> first = data.packet->CreateFragment (0, maxSize); |
268 |
data.packet->RemoveAtStart (maxSize); |
269 |
if (!(flags & MSG_PEEK)) |
|
|
270 |
{ |
271 |
data.packet->RemoveAtStart (maxSize); |
272 |
} |
269 |
m_data.push_front (data); |
273 |
m_data.push_front (data); |
270 |
return first; |
274 |
return first; |
271 |
} |
275 |
} |