View | Details | Raw Unified | Return to bug 858
Collapse All | Expand All

(-)a/src/internet-stack/ipv4-raw-socket-impl.cc (-1 / +5 lines)
 Lines 1-3    Link Here 
1
#include <netinet/in.h>
1
#include "ipv4-raw-socket-impl.h"
2
#include "ipv4-raw-socket-impl.h"
2
#include "ipv4-l3-protocol.h"
3
#include "ipv4-l3-protocol.h"
3
#include "icmpv4.h"
4
#include "icmpv4.h"
 Lines 230-236    Link Here 
230
  if (data.packet->GetSize () > maxSize)
231
  if (data.packet->GetSize () > maxSize)
231
    {
232
    {
232
      Ptr<Packet> first = data.packet->CreateFragment (0, maxSize);
233
      Ptr<Packet> first = data.packet->CreateFragment (0, maxSize);
233
      data.packet->RemoveAtStart (maxSize);
234
      if (!(flags & MSG_PEEK))
235
        {
236
          data.packet->RemoveAtStart (maxSize);
237
        }
234
      m_recv.push_front (data);
238
      m_recv.push_front (data);
235
      return first;
239
      return first;
236
    }
240
    }
(-)a/src/internet-stack/ipv6-raw-socket-impl.cc (-1 / +5 lines)
 Lines 18-23    Link Here 
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"
 Lines 265-271    Link Here 
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
    }

Return to bug 858