|
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); |
|
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 |
|