X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80221Bundle%2FTLVPacket.hh;h=f0e6e9cdededb618fd6c474730d8bab04bc0753a;hb=eb2dc72ff79098515b03945c611955704b1babe3;hp=5ed3ab3ced14339a7e89aa4c3aa4200adfc4a911;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Packets/80221Bundle/TLVPacket.hh b/senf/Packets/80221Bundle/TLVPacket.hh index 5ed3ab3..f0e6e9c 100644 --- a/senf/Packets/80221Bundle/TLVPacket.hh +++ b/senf/Packets/80221Bundle/TLVPacket.hh @@ -97,7 +97,7 @@ namespace senf { typedef MacAddressesTLVParser parser; ... static void finalize(ConcretePacket p) { - p->shrinkLength(); + p->finalizeLength(); } }; \endcode @@ -137,11 +137,7 @@ namespace senf { }; protected: - /// return size of length field - size_type length_bytes() const { return length_().bytes(); }; - /// set length field to given value - void length(DynamicTLVLengthParser::value_type &v) { length_() = v; }; - /// resize the Packet after the length field to given size + /// resize the packet after the length field to given size senf::safe_data_iterator resizeValueField(DynamicTLVLengthParser::value_type size); }; @@ -194,11 +190,13 @@ namespace senf { static void dump(packet p, std::ostream & os); static void finalize(packet p); ///< Finalize packet. /**< shrink size of length field to minimum - \see BaseTLVPacketParser::shrinkLength() */ + \see BaseTLVPacketParser::finalizeLength() */ }; - /** \brief GenericTLV packet typedef */ + /** \brief GenericTLV packet typedef + \ingroup protocolbundle_80221 + */ typedef ConcretePacket GenericTLVPacket; }