X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FIpV6Packet.hh;h=112afdc99cb5a375ff36ae5123aadba817c646b8;hb=a4e052fb8832499ef5e3ae4e563ea01b834010c2;hp=33ccb8b98b89e76812c4e9d1b39d56088d7e5925;hpb=d53c168dbfd70ffea9ebad8953193163e113ff3a;p=senf.git
diff --git a/Packets/DefaultBundle/IpV6Packet.hh b/Packets/DefaultBundle/IpV6Packet.hh
index 33ccb8b..112afdc 100644
--- a/Packets/DefaultBundle/IpV6Packet.hh
+++ b/Packets/DefaultBundle/IpV6Packet.hh
@@ -37,27 +37,11 @@ namespace senf {
Parser implementing the IpV6 header. The fields implemented are:
-
- Field name | Parser type |
- version | \ref Parse_Version |
- trafficClass | \ref Parse_Class |
- flowLabel | \ref Parse_FlowLabel |
- length | \ref Parse_16bit |
- nextHeader | \ref Parse_8bit |
- hopLimit | \ref Parse_8bit |
- source | \ref Parse_Addr |
- destination | \ref Parse_Addr |
-
-
\see IpV6PacketType \n
RFC 2460
*/
struct Parse_IpV6 : public PacketParserBase
{
- SENF_PACKET_PARSER_NO_INIT(Parse_IpV6);
-
- ///////////////////////////////////////////////////////////////////////////
-
typedef Parse_UIntField < 0, 4 > Parse_Version;
typedef Parse_UIntField < 4, 12 > Parse_Class;
typedef Parse_UIntField < 12, 32 > Parse_FlowLabel;
@@ -66,6 +50,10 @@ namespace senf {
typedef Parse_Array < 16, Parse_8bit > Parse_Addr;
+# ifndef DOXYGEN
+
+ SENF_PACKET_PARSER_NO_INIT(Parse_IpV6);
+
SENF_PACKET_PARSER_DEFINE_FIXED_FIELDS(
((OverlayField)( version, Parse_Version ))
((OverlayField)( trafficClass, Parse_Class ))
@@ -76,6 +64,19 @@ namespace senf {
((Field )( source, Parse_Addr ))
((Field )( destination, Parse_Addr )) );
+# else
+
+ Parse_Version version();
+ Parse_Class trafficClass();
+ Parse_FlowLabel flowLabel();
+ Parse_16bit length();
+ Parse_8bit nextHeader();
+ Parse_8bit hopLimit();
+ Parse_Addr source();
+ Parse_Addr destination();
+
+# endif
+
void init() {
version() = 6;
}