Packets/DefaultBundle: use new generic TLV base class for IPv6Options
[senf.git] / senf / Packets / 80221Bundle / TLVPacket.hh
index 2151e7f..f0e6e9c 100644 (file)
@@ -28,7 +28,7 @@
 
 // Custom includes
 #include <algorithm>
-#include "../../Packets/Packets.hh"
+#include <senf/Packets/Packets.hh>
 
 //#include "TLVPacket.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -97,7 +97,7 @@ namespace senf {
             typedef MacAddressesTLVParser parser;
             ...
             static void finalize(ConcretePacket<MacAddressesTLVPacketType> 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<GenericTLVPacketType> GenericTLVPacket;
 }