Bug 868 - invalid packet size after Ipv4L3Protocol::Send
invalid packet size after Ipv4L3Protocol::Send
Status: VERIFIED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3.7
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-08 09:46 EDT by Hajime Tazaki
Modified: 2010-04-08 10:10 EDT (History)
0 users

See Also:


Attachments
Fix the problem with test code (3.22 KB, patch)
2010-04-08 09:46 EDT, Hajime Tazaki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hajime Tazaki 2010-04-08 09:46:55 EDT
Created attachment 822 [details]
Fix the problem with test code

Usually, packet->GetSize () after Ipv4L3Protocol::Send () should not include IpHeader.
Since we can know the transmitted data size from the socket with Packet::GetSize ().

Special case is if we use setsockopt (IP_HDRINCL) with raw socket. In that case, IpHeader should be included.
Comment 1 Hajime Tazaki 2010-04-08 10:10:26 EDT
I've pushed this patch into ns-3-dev.

changeset: 6182, 9e060dd421fa