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

(-)a/src/internet-stack/ipv4-raw-socket-impl.cc (-2 / +2 lines)
 Lines 221-226    Link Here 
221
    }
221
    }
222
  struct Data data = m_recv.front ();
222
  struct Data data = m_recv.front ();
223
  m_recv.pop_front ();
223
  m_recv.pop_front ();
224
  InetSocketAddress inet = InetSocketAddress (data.fromIp, data.fromProtocol);
225
  fromAddress = inet;
224
  if (data.packet->GetSize () > maxSize)
226
  if (data.packet->GetSize () > maxSize)
225
    {
227
    {
226
      Ptr<Packet> first = data.packet->CreateFragment (0, maxSize);
228
      Ptr<Packet> first = data.packet->CreateFragment (0, maxSize);
 Lines 228-235    Link Here 
228
      m_recv.push_front (data);
230
      m_recv.push_front (data);
229
      return first;
231
      return first;
230
    }
232
    }
231
  InetSocketAddress inet = InetSocketAddress (data.fromIp, data.fromProtocol);
232
  fromAddress = inet;
233
  return data.packet;
233
  return data.packet;
234
}
234
}
235
235

Return to bug 865