|
Bugzilla – Full Text Bug Listing |
| Summary: | invalid packet size after Ipv4L3Protocol::Send | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Hajime Tazaki <tazaki> |
| Component: | internet | Assignee: | 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 | ||
I've pushed this patch into ns-3-dev. changeset: 6182, 9e060dd421fa |
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.