X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FDefaultBundle%2FICMPv6TypePacket.hh;h=e1b1c02f36bf2bd1f8a5365f995d77f4f41b31c7;hb=6c0332484574ed1cb571bbc0dc9f0a37d6653282;hp=25af18e340d445d6287d2bd3320439aa800ef19f;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Packets/DefaultBundle/ICMPv6TypePacket.hh b/senf/Packets/DefaultBundle/ICMPv6TypePacket.hh index 25af18e..e1b1c02 100644 --- a/senf/Packets/DefaultBundle/ICMPv6TypePacket.hh +++ b/senf/Packets/DefaultBundle/ICMPv6TypePacket.hh @@ -26,7 +26,7 @@ #define HH_SENF_Packets_DefaultBundle_ICMPv6TypePacket_ 1 // Custom includes -#include "../Packets.hh" +#include #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 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 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 ICMPv6ErrDestUnreachable; @@ -172,10 +178,10 @@ namespace senf { SENF_PARSER_FIELD ( mtu, UInt32Parser ); /* Code static set to 0 */ - // SENF_PARSER_INIT() { - // ICMPv6Packet icmpv6 (packet().rfind(senf::nothrow)); - // icmpv6->code() = 0; - // } + SENF_PARSER_INIT() { + ICMPv6Packet icmpv6 (packet().rfind(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 ICMPv6ErrTooBig; @@ -216,7 +224,8 @@ namespace senf { SENF_PARSER_FIELD ( unused, UInt32Parser ); /* Code 0 - Hop limit exceeded in transit 1 - Fragment reassembly time exceeded */ - void setErrCode(int code){ + void setErrCode(int code) + { ICMPv6Packet icmpv6 (packet().rfind(senf::nothrow)); icmpv6->code() = code; } @@ -246,6 +255,8 @@ namespace senf { using mixin::nextPacketRange; using mixin::init; using mixin::initSize; + + static void dump(packet p, std::ostream & os); }; typedef ConcretePacket ICMPv6ErrTimeExceeded; @@ -261,7 +272,8 @@ namespace senf { 1 - Unrecognized Next Header type encountered 2 - Unrecognized IPv6 option encountered */ - void setErrCode(int code){ + void setErrCode(int code) + { ICMPv6Packet icmpv6 (packet().rfind(senf::nothrow)); icmpv6->code() = code; } @@ -290,6 +302,8 @@ namespace senf { using mixin::nextPacketRange; using mixin::init; using mixin::initSize; + + static void dump(packet p, std::ostream & os); }; typedef ConcretePacket ICMPv6ErrParamProblem; @@ -349,6 +363,8 @@ namespace senf { using mixin::nextPacketRange; using mixin::init; using mixin::initSize; + + static void dump(packet p, std::ostream & os); }; typedef ConcretePacket MLDv2ListenerQuery; @@ -409,6 +425,8 @@ namespace senf { using mixin::nextPacketRange; using mixin::init; using mixin::initSize; + + static void dump(packet p, std::ostream & os); }; typedef ConcretePacket MLDv2ListenerReport;