add function to change packet to be cloned
dw6 [Tue, 15 Jan 2008 16:38:55 +0000 (16:38 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@607 270642c3-0616-0410-b53a-bc976706d245

PPI/CloneSource.cc
PPI/CloneSource.hh

index 828b6bc..76b4ddf 100644 (file)
@@ -43,6 +43,10 @@ void senf::ppi::module::CloneSource::request()
 {
     output(packet_.clone());
 }
+void senf::ppi::module::CloneSource::replacePacket(senf::Packet packet)
+{
+    packet_ = packet; 
+}
 
 
 ///////////////////////////////cc.e////////////////////////////////////////
index 8f34b1f..eb79762 100644 (file)
@@ -53,6 +53,7 @@ namespace module {
         connector::PassiveOutput output;
 
         CloneSource(senf::Packet packet);
+        void replacePacket(senf::Packet packet);
 
     private:
         void request();