Bug 1991

Summary: PcapFileWrapper::CaptureSize attribute (snaplen) has no effect.
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: networkAssignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: fix

Description Tommaso Pecorella 2014-09-19 13:24:23 UTC
The problem is in a wrong check in PcapFileWrapper::Init
The function checks if the user asked for a specific snaplen, but the calling function by default ask for another value than the one the function is checking for.
Comment 1 Tommaso Pecorella 2014-09-19 13:40:30 UTC
Created attachment 1884 [details]
fix

Fix.
Comment 2 Tommaso Pecorella 2014-09-19 13:41:20 UTC
For the records, it has been signaled here:
https://groups.google.com/forum/#!topic/ns-3-users/600yPcFMUgU
Comment 3 Tommaso Pecorella 2014-09-19 16:03:44 UTC
changeset:   10961:de4573473570