X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FCloneSource.cc;h=cb0b67c9aec7c88e1b9a72b7b1d430335d2f2463;hb=b8ca4a544cce3e6023bb56b712a03d6362f2bb79;hp=828b6bc776f45752a2c1635568895e3a8e61a966;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/PPI/CloneSource.cc b/PPI/CloneSource.cc index 828b6bc..cb0b67c 100644 --- a/PPI/CloneSource.cc +++ b/PPI/CloneSource.cc @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -32,8 +32,8 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -senf::ppi::module::CloneSource::CloneSource(senf::Packet packet) - : packet_(packet) +senf::ppi::module::CloneSource::CloneSource(senf::Packet const & packet) + : packet_(packet) { noroute(output); output.onRequest(&CloneSource::request); @@ -44,6 +44,11 @@ void senf::ppi::module::CloneSource::request() output(packet_.clone()); } +void senf::ppi::module::CloneSource::replacePacket(senf::Packet const & packet) +{ + packet_ = packet; +} + ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_