X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FICMPv6TypePacket.hh;h=25af18e340d445d6287d2bd3320439aa800ef19f;hb=fd3a0e8ac95d1158e9ea661ddf9187b67c70169f;hp=874190902cae2f6770e413aed08f4b525cae0628;hpb=962f88fbbfc6f4da1502088dfa94273e7fbd3c80;p=senf.git diff --git a/Packets/DefaultBundle/ICMPv6TypePacket.hh b/Packets/DefaultBundle/ICMPv6TypePacket.hh index 8741909..25af18e 100644 --- a/Packets/DefaultBundle/ICMPv6TypePacket.hh +++ b/Packets/DefaultBundle/ICMPv6TypePacket.hh @@ -26,7 +26,8 @@ #define HH_SENF_Packets_DefaultBundle_ICMPv6TypePacket_ 1 // Custom includes -#include "../../Packets/Packets.hh" +#include "../Packets.hh" +#include "IPv6Packet.hh" #include "ICMPv6Packet.hh" namespace senf { @@ -43,6 +44,17 @@ namespace senf { SENF_PARSER_FINALIZE ( ICMPv6EchoRequestParser ); }; + /** \brief ICMPv6 Echo Request + + \par Packet type (typedef): + \ref ICMPv6EchoRequest + + \par Fields: + \ref ICMPv6EchoRequestParser + \image html ICMPv6EchoRequest.png + + \ingroup protocolbundle_default + */ struct ICMPv6EchoRequestType : public PacketTypeBase, public PacketTypeMixin @@ -70,6 +82,17 @@ namespace senf { SENF_PARSER_FINALIZE ( ICMPv6EchoReplyParser ); }; + /** \brief ICMPv6 Echo Reply + + \par Packet type (typedef): + \ref ICMPv6EchoReply + + \par Fields: + \ref ICMPv6EchoReplyParser + \image html ICMPv6EchoReply.png + + \ingroup protocolbundle_default + */ struct ICMPv6EchoReplyType : public PacketTypeBase, public PacketTypeMixin @@ -114,6 +137,17 @@ namespace senf { SENF_PARSER_FINALIZE ( ICMPv6ErrDestUnreachableParser ); }; + /** \brief ICMPv6 Destination unreachable + + \par Packet type (typedef): + \ref ICMPv6ErrDestUnreachable + + \par Fields: + \ref ICMPv6ErrDestUnreachableParser + \image html ICMPv6ErrDestUnreachable.png + + \ingroup protocolbundle_default + */ struct ICMPv6ErrDestUnreachableType : public PacketTypeBase, public PacketTypeMixin @@ -139,13 +173,24 @@ namespace senf { /* Code static set to 0 */ // SENF_PARSER_INIT() { - // ICMPv6Packet icmpv6 (senf::Packet().rfind(senf::nothrow)); + // ICMPv6Packet icmpv6 (packet().rfind(senf::nothrow)); // icmpv6->code() = 0; // } SENF_PARSER_FINALIZE ( ICMPv6ErrTooBigParser ); }; + /** \brief ICMPv6 Packet to big + + \par Packet type (typedef): + \ref ICMPv6ErrTooBig + + \par Fields: + \ref ICMPv6ErrTooBigParser + \image html ICMPv6ErrTooBig.png + + \ingroup protocolbundle_default + */ struct ICMPv6ErrTooBigType : public PacketTypeBase, public PacketTypeMixin @@ -172,13 +217,24 @@ namespace senf { /* Code 0 - Hop limit exceeded in transit 1 - Fragment reassembly time exceeded */ void setErrCode(int code){ - ICMPv6Packet icmpv6 (senf::Packet().rfind(senf::nothrow)); + ICMPv6Packet icmpv6 (packet().rfind(senf::nothrow)); icmpv6->code() = code; } SENF_PARSER_FINALIZE ( ICMPv6ErrTimeExceededParser ); }; + /** \brief ICMPv6 Time exceeded + + \par Packet type (typedef): + \ref ICMPv6ErrTimeExceeded + + \par Fields: + \ref ICMPv6ErrTimeExceededParser + \image html ICMPv6ErrTimeExceeded.png + + \ingroup protocolbundle_default + */ struct ICMPv6ErrTimeExceededType : public PacketTypeBase, public PacketTypeMixin @@ -206,12 +262,23 @@ namespace senf { 2 - Unrecognized IPv6 option encountered */ void setErrCode(int code){ - ICMPv6Packet icmpv6 (senf::Packet().rfind(senf::nothrow)); + ICMPv6Packet icmpv6 (packet().rfind(senf::nothrow)); icmpv6->code() = code; } SENF_PARSER_FINALIZE ( ICMPv6ErrParamProblemParser ); }; + /** \brief ICMPv6 Parameter problem + + \par Packet type (typedef): + \ref ICMPv6ErrParamProblem + + \par Fields: + \ref ICMPv6ErrParamProblemParser + \image html ICMPv6ErrParamProblem.png + + \ingroup protocolbundle_default + */ struct ICMPv6ErrParamProblemType : public PacketTypeBase, public PacketTypeMixin @@ -260,6 +327,17 @@ namespace senf { } }; + /** \brief MLDv2 Listener query + + \par Packet type (typedef): + \ref MLDv2ListenerQuery + + \par Fields: + \ref MLDv2ListenerQueryParser + \image html MLDv2ListenerQuery.png + + \ingroup protocolbundle_default + */ struct MLDv2ListenerQueryType : public PacketTypeBase, public PacketTypeMixin @@ -308,6 +386,18 @@ namespace senf { } }; + /** \brief MLDv2 Listener report + + \par Packet type (typedef): + \ref MLDv2ListenerReport + + \par Fields: + \ref MLDv2ListenerReportParser + \image html MLDv2ListenerReport.png + \image html MLDv2AddressRecord.png + + \ingroup protocolbundle_default + */ struct MLDv2ListenerReportType : public PacketTypeBase, public PacketTypeMixin @@ -325,3 +415,14 @@ namespace senf { } #endif + + +// Local Variables: +// mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 +// End: