X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FDefaultBundle%2FIPv6ExtOptionType.ct;h=ca43a485b5df57a620ac3ed06b43e552b351f4b7;hb=b6acba899f44ba9422476022c775cef823fc9337;hp=fef4b76d2929d26c9ef953517492ac3ff7679afb;hpb=ec7f715d7eef5bb915c7ca39587a99fb41d8d3be;p=senf.git diff --git a/senf/Packets/DefaultBundle/IPv6ExtOptionType.ct b/senf/Packets/DefaultBundle/IPv6ExtOptionType.ct index fef4b76..ca43a48 100644 --- a/senf/Packets/DefaultBundle/IPv6ExtOptionType.ct +++ b/senf/Packets/DefaultBundle/IPv6ExtOptionType.ct @@ -26,7 +26,6 @@ //#include "IPv6ExtOptionType.ih" // Custom includes -#include #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// @@ -38,7 +37,8 @@ prefix_ void senf::IPv6GenericOptionTLVParser::value(ForwardReadableRange const if ( (rangeSize-2) != optionLength() ) resize(optionLength()+2, rangeSize); - std::copy(boost::next(boost::begin(range), 2), boost::next(boost::end(range)), boost::next(i(), 2 + optionLength() )); + std::copy(boost::next(boost::begin(range), 2), boost::next(boost::end(range)), + boost::next(i(), 2 + optionLength() )); unsigned int val = *(boost::begin(range)); unsigned int mask = 192u; altAction() = (val & mask) >> 6; @@ -59,7 +59,6 @@ prefix_ void senf::IPv6GenericOptionTLVParser::setPayload(ForwardReadableRange c optionLength() = rangeSize; } - template prefix_ Parser senf::IPv6GenericOptionTLVParser::init() { @@ -73,19 +72,17 @@ prefix_ Parser senf::IPv6GenericOptionTLVParser::init() return concreteParser; } - -// template -// prefix_ Parser& senf::GenericOptTypeTLVParser::get() -// { -// SENF_ASSERT (optionType() == typeCode); -// return *(this); -// } +template +prefix_ Parser senf::IPv6GenericOptionTLVParser::as() +{ + return Parser(i(), state() ); +} ///////////////////////////////ct.e//////////////////////////////////////// #undef prefix_ - + // Local Variables: // mode: c++ // fill-column: 100