Bug 868

Summary: invalid packet size after Ipv4L3Protocol::Send
Product: ns-3 Reporter: Hajime Tazaki <tazaki>
Component: internetAssignee: ns-bugs <ns-bugs>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: ns-3.7   
Hardware: All   
OS: All   
Attachments: Fix the problem with test code

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