Operation aborted due to pcap file open fail

275 views
Skip to first unread message

Ubaid ur Rahman

unread,
Jan 1, 2016, 2:27:41 PM1/1/16
to ns-3-users
Hello,

I want to generate pcap traces for all devices in the topology, I have 3 different point-to-point helpers with different configurations. When I enabled pcap for all the following error is shown
aborted. cond="file->Fail ()", msg="Unable to Open TT_ACC_AGG_PCAP-289-4.pcap for mode 16", file=../src/network/helper/trace-helper.cc, line=60

What is the reason for this failure?

Also the pcap files are generated in the root folder, which I don't want how can I change the directory for pcap, I have seen example for ascii.tr but no pcap. I tried the same format but didn't work. here is how I did it
nTac.EnablePcapAll("~/trashed/TT_NODE_ACC_PCAP");
    acTag
.EnablePcapAll("~/trashed/TT_ACC_AGG_PCAP");
    agTc
.EnablePcapAll("~/trashed/TT_AGG_C_PCAP");

// error got
aborted
. cond="file->Fail ()", msg="Unable to Open ~/trashed/TT_NODE_ACC_PCAP-0-1.pcap for mode 16", file=../src/network/helper/trace-helper.cc, line=60

For the record I am using NS-3 version 3.24.1

pdbarnes

unread,
Jan 2, 2016, 10:52:59 AM1/2/16
to ns-3-users
Does the target directory exist?
Reply all
Reply to author
Forward
0 new messages