generate .pcap postfix for pcap filenames
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 31 Mar 2008 15:19:31 -0700
changeset 2839 b30d4ece2bbb
parent 2838 d120c4ca2d24
child 2840 c21b6aedb8fb
generate .pcap postfix for pcap filenames
src/helper/csma-helper.cc
src/helper/csma-helper.h
src/helper/point-to-point-helper.cc
src/helper/point-to-point-helper.h
src/helper/wifi-helper.cc
src/helper/wifi-helper.h
--- 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.