X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FCloneSource.cc;h=9abde7320ab0825eb63b73fd1f5cbc08523e3113;hb=8aa27cfde664f462f1aebd601f1521c186d819c3;hp=828b6bc776f45752a2c1635568895e3a8e61a966;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/PPI/CloneSource.cc b/PPI/CloneSource.cc index 828b6bc..9abde73 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 @@ -33,7 +33,7 @@ ///////////////////////////////cc.p//////////////////////////////////////// senf::ppi::module::CloneSource::CloneSource(senf::Packet packet) - : packet_(packet) + : packet_(packet) { noroute(output); output.onRequest(&CloneSource::request); @@ -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////////////////////////////////////////