//#include "IPv6ExtOptionType.ih"
// Custom includes
-#include <senf/Utils/hexdump.hh>
#define prefix_
///////////////////////////////ct.p////////////////////////////////////////
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;
optionLength() = rangeSize;
}
-
template <class Parser>
prefix_ Parser senf::IPv6GenericOptionTLVParser::init()
{
return concreteParser;
}
-
-// template <class Parser>
-// prefix_ Parser& senf::GenericOptTypeTLVParser::get()
-// {
-// SENF_ASSERT (optionType() == typeCode);
-// return *(this);
-// }
+template <class Parser>
+prefix_ Parser senf::IPv6GenericOptionTLVParser::as()
+{
+ return Parser(i(), state() );
+}
///////////////////////////////ct.e////////////////////////////////////////