--- a/src/helper/csma-helper.cc Mon Mar 31 15:19:11 2008 -0700
+++ b/src/helper/csma-helper.cc Mon Mar 31 15:19:31 2008 -0700
@@ -67,7 +67,7 @@
CsmaHelper::EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid)
{
std::ostringstream oss;
- oss << filename << "-" << nodeid << "-" << deviceid;
+ oss << filename << "-" << nodeid << "-" << deviceid << ".pcap";
Ptr<PcapWriter> pcap = Create<PcapWriter> ();
pcap->Open (oss.str ());
pcap->WriteEthernetHeader ();
--- a/src/helper/csma-helper.h Mon Mar 31 15:19:11 2008 -0700
+++ b/src/helper/csma-helper.h Mon Mar 31 15:19:31 2008 -0700
@@ -86,7 +86,7 @@
*
* Generate a pcap file which contains the link-level data observed
* by the specified deviceid within the specified nodeid. The pcap
- * data is stored in the file prefix-nodeid-deviceid.
+ * data is stored in the file prefix-nodeid-deviceid.pcap.
*
* This method should be invoked after the network topology has
* been fully constructed.
--- a/src/helper/point-to-point-helper.cc Mon Mar 31 15:19:11 2008 -0700
+++ b/src/helper/point-to-point-helper.cc Mon Mar 31 15:19:31 2008 -0700
@@ -67,7 +67,7 @@
PointToPointHelper::EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid)
{
std::ostringstream oss;
- oss << filename << "-" << nodeid << "-" << deviceid;
+ oss << filename << "-" << nodeid << "-" << deviceid << ".pcap";
Ptr<PcapWriter> pcap = Create<PcapWriter> ();
pcap->Open (oss.str ());
pcap->WriteEthernetHeader ();
--- a/src/helper/point-to-point-helper.h Mon Mar 31 15:19:11 2008 -0700
+++ b/src/helper/point-to-point-helper.h Mon Mar 31 15:19:31 2008 -0700
@@ -85,7 +85,7 @@
*
* Generate a pcap file which contains the link-level data observed
* by the specified deviceid within the specified nodeid. The pcap
- * data is stored in the file prefix-nodeid-deviceid.
+ * data is stored in the file prefix-nodeid-deviceid.pcap.
*
* This method should be invoked after the network topology has
* been fully constructed.
--- a/src/helper/wifi-helper.cc Mon Mar 31 15:19:11 2008 -0700
+++ b/src/helper/wifi-helper.cc Mon Mar 31 15:19:31 2008 -0700
@@ -149,7 +149,7 @@
WifiHelper::EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid)
{
std::ostringstream oss;
- oss << filename << "-" << nodeid << "-" << deviceid;
+ oss << filename << "-" << nodeid << "-" << deviceid << ".pcap";
Ptr<PcapWriter> pcap = Create<PcapWriter> ();
pcap->Open (oss.str ());
pcap->WriteWifiHeader ();
--- a/src/helper/wifi-helper.h Mon Mar 31 15:19:11 2008 -0700
+++ b/src/helper/wifi-helper.h Mon Mar 31 15:19:31 2008 -0700
@@ -147,7 +147,7 @@
*
* Generate a pcap file which contains the link-level data observed
* by the specified deviceid within the specified nodeid. The pcap
- * data is stored in the file prefix-nodeid-deviceid.
+ * data is stored in the file prefix-nodeid-deviceid.pcap.
*
* This method should be invoked after the network topology has
* been fully constructed.