Bug 1991 - PcapFileWrapper::CaptureSize attribute (snaplen) has no effect.
PcapFileWrapper::CaptureSize attribute (snaplen) has no effect.
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: network
ns-3-dev
All All
: P5 normal
Assigned To: Tommaso Pecorella
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-19 13:24 UTC by Tommaso Pecorella
Modified: 2014-09-19 16:03 UTC (History)
0 users

See Also:


Attachments
fix (15.58 KB, patch)
2014-09-19 13:40 UTC, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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