Skip to content
Snippets Groups Projects
Commit 6de6f9cd authored by tho's avatar tho
Browse files

simplified (hopefully) to documentation for the PacketTypes

parent 0cb9f8e6
No related branches found
No related tags found
No related merge requests found
...@@ -109,10 +109,11 @@ namespace senf { ...@@ -109,10 +109,11 @@ namespace senf {
: public PacketTypeBase, : public PacketTypeBase,
public PacketTypeMixin<EthernetPacketType, EtherTypes> public PacketTypeMixin<EthernetPacketType, EtherTypes>
{ {
#ifndef DOXYGEN
typedef PacketTypeMixin<EthernetPacketType, EtherTypes> mixin; typedef PacketTypeMixin<EthernetPacketType, EtherTypes> mixin;
typedef ConcretePacket<EthernetPacketType> packet; typedef ConcretePacket<EthernetPacketType> packet;
typedef Parse_Ethernet parser; typedef Parse_Ethernet parser;
#endif
using mixin::nextPacketRange; using mixin::nextPacketRange;
using mixin::nextPacketType; using mixin::nextPacketType;
using mixin::initSize; using mixin::initSize;
...@@ -128,7 +129,7 @@ namespace senf { ...@@ -128,7 +129,7 @@ namespace senf {
}; };
/** \brief Ethernet packet typedef */ /** \brief Ethernet packet typedef */
typedef EthernetPacketType::packet EthernetPacket; typedef ConcretePacket<EthernetPacketType> EthernetPacket;
/** \brief Parse an ethernet VLAN tag /** \brief Parse an ethernet VLAN tag
...@@ -169,10 +170,11 @@ namespace senf { ...@@ -169,10 +170,11 @@ namespace senf {
: public PacketTypeBase, : public PacketTypeBase,
public PacketTypeMixin<EthVLanPacketType, EtherTypes> public PacketTypeMixin<EthVLanPacketType, EtherTypes>
{ {
#ifndef DOXYGEN
typedef PacketTypeMixin<EthVLanPacketType, EtherTypes> mixin; typedef PacketTypeMixin<EthVLanPacketType, EtherTypes> mixin;
typedef ConcretePacket<EthVLanPacketType> packet; typedef ConcretePacket<EthVLanPacketType> packet;
typedef Parse_EthVLan parser; typedef Parse_EthVLan parser;
#endif
using mixin::nextPacketRange; using mixin::nextPacketRange;
using mixin::nextPacketType; using mixin::nextPacketType;
using mixin::initSize; using mixin::initSize;
...@@ -188,7 +190,7 @@ namespace senf { ...@@ -188,7 +190,7 @@ namespace senf {
}; };
/** \brief Ethernet VLAN tag typedef */ /** \brief Ethernet VLAN tag typedef */
typedef EthVLanPacketType::packet EthVLanPacket; typedef ConcretePacket<EthVLanPacketType> EthVLanPacket;
} }
......
...@@ -135,10 +135,11 @@ namespace senf { ...@@ -135,10 +135,11 @@ namespace senf {
: public PacketTypeBase, : public PacketTypeBase,
public PacketTypeMixin<IpV4PacketType, IpTypes> public PacketTypeMixin<IpV4PacketType, IpTypes>
{ {
#ifndef DOXYGEN
typedef PacketTypeMixin<IpV4PacketType, IpTypes> mixin; typedef PacketTypeMixin<IpV4PacketType, IpTypes> mixin;
typedef ConcretePacket<IpV4PacketType> packet; typedef ConcretePacket<IpV4PacketType> packet;
typedef Parse_IpV4 parser; typedef Parse_IpV4 parser;
#endif
using mixin::nextPacketRange; using mixin::nextPacketRange;
using mixin::nextPacketType; using mixin::nextPacketType;
using mixin::initSize; using mixin::initSize;
...@@ -152,7 +153,7 @@ namespace senf { ...@@ -152,7 +153,7 @@ namespace senf {
}; };
/** \brief IpV4 packet typedef */ /** \brief IpV4 packet typedef */
typedef IpV4PacketType::packet IpV4Packet; typedef ConcretePacket<IpV4PacketType> IpV4Packet;
} }
......
...@@ -75,10 +75,11 @@ namespace senf { ...@@ -75,10 +75,11 @@ namespace senf {
: public PacketTypeBase, : public PacketTypeBase,
public PacketTypeMixin<IpV6ExtensionType_Fragment, IpTypes> public PacketTypeMixin<IpV6ExtensionType_Fragment, IpTypes>
{ {
#ifndef DOXYGEN
typedef PacketTypeMixin<IpV6ExtensionType_Fragment, IpTypes> mixin; typedef PacketTypeMixin<IpV6ExtensionType_Fragment, IpTypes> mixin;
typedef ConcretePacket<IpV6ExtensionType_Fragment> packet; typedef ConcretePacket<IpV6ExtensionType_Fragment> packet;
typedef Parse_IpV6Extension_Fragment parser; typedef Parse_IpV6Extension_Fragment parser;
#endif
using mixin::nextPacketRange; using mixin::nextPacketRange;
using mixin::nextPacketType; using mixin::nextPacketType;
using mixin::initSize; using mixin::initSize;
...@@ -94,7 +95,7 @@ namespace senf { ...@@ -94,7 +95,7 @@ namespace senf {
}; };
/** \brief IpV6 fragment extension packet typedef */ /** \brief IpV6 fragment extension packet typedef */
typedef IpV6ExtensionType_Fragment::packet IpV6Extension_Fragment; typedef ConcretePacket<IpV6ExtensionType_Fragment> IpV6Extension_Fragment;
} }
///////////////////////////////hh.e//////////////////////////////////////// ///////////////////////////////hh.e////////////////////////////////////////
......
...@@ -102,10 +102,11 @@ namespace senf { ...@@ -102,10 +102,11 @@ namespace senf {
: public PacketTypeBase, : public PacketTypeBase,
public PacketTypeMixin<IpV6PacketType, IpTypes> public PacketTypeMixin<IpV6PacketType, IpTypes>
{ {
#ifndef DOXYGEN
typedef PacketTypeMixin<IpV6PacketType, IpTypes> mixin; typedef PacketTypeMixin<IpV6PacketType, IpTypes> mixin;
typedef ConcretePacket<IpV6PacketType> packet; typedef ConcretePacket<IpV6PacketType> packet;
typedef Parse_IpV6 parser; typedef Parse_IpV6 parser;
#endif
using mixin::nextPacketRange; using mixin::nextPacketRange;
using mixin::nextPacketType; using mixin::nextPacketType;
using mixin::initSize; using mixin::initSize;
...@@ -120,7 +121,7 @@ namespace senf { ...@@ -120,7 +121,7 @@ namespace senf {
}; };
/** \brief IpV6 packet typedef */ /** \brief IpV6 packet typedef */
typedef IpV6PacketType::packet IpV6Packet; typedef ConcretePacket<IpV6PacketType> IpV6Packet;
///@} ///@}
} }
......
...@@ -77,10 +77,11 @@ namespace senf { ...@@ -77,10 +77,11 @@ namespace senf {
: public PacketTypeBase, : public PacketTypeBase,
public PacketTypeMixin<UDPPacketType> public PacketTypeMixin<UDPPacketType>
{ {
#ifndef DOXYGEN
typedef PacketTypeMixin<UDPPacketType> mixin; typedef PacketTypeMixin<UDPPacketType> mixin;
typedef ConcretePacket<UDPPacketType> packet; typedef ConcretePacket<UDPPacketType> packet;
typedef Parse_UDP parser; typedef Parse_UDP parser;
#endif
using mixin::nextPacketRange; using mixin::nextPacketRange;
using mixin::initSize; using mixin::initSize;
using mixin::init; using mixin::init;
...@@ -91,7 +92,7 @@ namespace senf { ...@@ -91,7 +92,7 @@ namespace senf {
}; };
/** \brief UDP packet typedef */ /** \brief UDP packet typedef */
typedef UDPPacketType::packet UDPPacket; typedef ConcretePacket<UDPPacketType> UDPPacket;
} }
......
...@@ -114,9 +114,10 @@ namespace senf { ...@@ -114,9 +114,10 @@ namespace senf {
struct TLVPacketType struct TLVPacketType
: public PacketTypeBase : public PacketTypeBase
{ {
#ifndef DOXYGEN
typedef ConcretePacket<TLVPacketType<LengthParser> > packet; typedef ConcretePacket<TLVPacketType<LengthParser> > packet;
typedef Parse_TLVPacket<LengthParser> parser; typedef Parse_TLVPacket<LengthParser> parser;
#endif
static optional_range nextPacketRange(packet p); static optional_range nextPacketRange(packet p);
static size_type initSize(); static size_type initSize();
...@@ -127,10 +128,10 @@ namespace senf { ...@@ -127,10 +128,10 @@ namespace senf {
typedef TLVPacketType<Parse_TLVPacketLength>::packet TLVPacket; typedef TLVPacketType<Parse_TLVPacketLength>::packet TLVPacket;
typedef TLVPacketType<Parse_UInt8>::packet TLVFix8Packet; typedef ConcretePacket<TLVPacketType<Parse_UInt8> > TLVFix8Packet;
typedef TLVPacketType<Parse_UInt16>::packet TLVFix16Packet; typedef ConcretePacket<TLVPacketType<Parse_UInt16> > TLVFix16Packet;
typedef TLVPacketType<Parse_UInt24>::packet TLVFix24Packet; typedef ConcretePacket<TLVPacketType<Parse_UInt24> > TLVFix24Packet;
typedef TLVPacketType<Parse_UInt32>::packet TLVFix32Packet; typedef ConcretePacket<TLVPacketType<Parse_UInt32> > TLVFix32Packet;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment