WLANPacket: revert to revision 1015; please run unit tests *before* submitting modifi...
[senf.git] / Packets / DefaultBundle / IPv6Packet.hh
index 3ac278b..97f79ab 100644 (file)
@@ -23,8 +23,8 @@
 /** \file
     \brief IPv6Packet public header */
 
-#ifndef HH_IPv6Packet_
-#define HH_IPv6Packet_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_IPv6Packet_
+#define HH_SENF_Packets_DefaultBundle_IPv6Packet_ 1
 
 // Custom includes
 #include "../../Socket/Protocols/INet/INet6Address.hh"
@@ -51,8 +51,8 @@ namespace senf {
 
         value_type value() const { return value_type::from_data(i()); }
         void value(value_type const & v) { std::copy(v.begin(), v.end(), i()); }
-        operator value_type() { return value(); }
-        byte & operator[](size_type index) { return *boost::next(i(),index); }
+        operator value_type() const { return value(); }
+        byte & operator[](size_type index) const { return *boost::next(i(),index); }
         INet6AddressParser const & operator= (value_type const & other) 
             { value(other); return *this; }
     };
@@ -98,6 +98,8 @@ namespace senf {
             Set \a length from payload size\n
             Set \a nextHeader from type of next packet if found in \ref IpTypes
 
+        \image html IPv6Packet.png
+
         \ingroup protocolbundle_default
      */
     struct IPv6PacketType