X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketInterpreter.ct;h=e7337368a4b3e514528c58832856c6aaed8e8e99;hb=51b24c3227717ce5ad8111a99c2d7eea5fa0bd8d;hp=57194b7e66595c983265a7dccca518780b5d091a;hpb=0e6076544fbcaba94b6339f0074cb2adcd56d515;p=senf.git diff --git a/senf/Packets/PacketInterpreter.ct b/senf/Packets/PacketInterpreter.ct index 57194b7..e733736 100644 --- a/senf/Packets/PacketInterpreter.ct +++ b/senf/Packets/PacketInterpreter.ct @@ -378,17 +378,16 @@ createInsertBefore(PacketInterpreterBase::ptr packet, senf::NoInit_t) template prefix_ typename senf::PacketInterpreterBase::ptr -senf::PacketInterpreter::FactoryImpl::parseNext(PacketInterpreterBase::ptr packet) +senf::PacketInterpreter::FactoryImpl::parseNext(PacketInterpreterBase::ptr packet, PacketInterpreterBase::optional_range const & range) const { - optional_range r (packet->nextPacketRange()); - if (!r) + if (!range) throw InvalidPacketChainException(); if (packet->next()) packet->impl().truncateInterpreters(packet->next().get()); - return senf::PacketInterpreter::create(&packet->impl(),r->begin(),r->end(),Append); + return senf::PacketInterpreter::create(&packet->impl(),range->begin(),range->end(),Append); } template