-added example selfnet generic option Type for checksum with imaginary type codes...
[senf.git] / senf / Packets / DefaultBundle / ICMPv6TypePacket.hh
index 25af18e..5e41f40 100644 (file)
@@ -26,7 +26,7 @@
 #define HH_SENF_Packets_DefaultBundle_ICMPv6TypePacket_ 1
 
 // Custom includes
-#include "../Packets.hh"
+#include <senf/Packets/Packets.hh>
 #include "IPv6Packet.hh"
 #include "ICMPv6Packet.hh"
 
@@ -66,6 +66,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+
+        static void dump(packet p, std::ostream & os);
     };
     
     typedef ConcretePacket<ICMPv6EchoRequestType> ICMPv6EchoRequest;
@@ -104,6 +106,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
         
     typedef ConcretePacket<ICMPv6EchoReplyType> ICMPv6EchoReply;
@@ -159,6 +163,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
         
     typedef ConcretePacket<ICMPv6ErrDestUnreachableType> ICMPv6ErrDestUnreachable;
@@ -172,10 +178,10 @@ namespace senf {
         SENF_PARSER_FIELD ( mtu, UInt32Parser );
     
         /*   Code     static set to 0       */
-    //     SENF_PARSER_INIT() {
-    //         ICMPv6Packet icmpv6 (packet().rfind<ICMPv6Packet>(senf::nothrow));
-    //         icmpv6->code() = 0;
-    //     }
+        SENF_PARSER_INIT() {
+            ICMPv6Packet icmpv6 (packet().rfind<ICMPv6Packet>(senf::nothrow));
+            icmpv6->code() = 0;
+        }
         
         SENF_PARSER_FINALIZE ( ICMPv6ErrTooBigParser );
     };
@@ -202,6 +208,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
 
     typedef ConcretePacket<ICMPv6ErrTooBigType> ICMPv6ErrTooBig;
@@ -246,6 +254,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
     typedef ConcretePacket<ICMPv6ErrTimeExceededType> ICMPv6ErrTimeExceeded;
     
@@ -290,6 +300,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
     typedef ConcretePacket<ICMPv6ErrParamProblemType> ICMPv6ErrParamProblem;
     
@@ -349,6 +361,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
         
     typedef ConcretePacket<MLDv2ListenerQueryType> MLDv2ListenerQuery;
@@ -409,6 +423,8 @@ namespace senf {
         using mixin::nextPacketRange;
         using mixin::init;
         using mixin::initSize;
+        
+        static void dump(packet p, std::ostream & os);
     };
         
     typedef ConcretePacket<MLDv2ListenerReportType> MLDv2ListenerReport;