EthernetFragmentPacket.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
14 #ifndef HH_WiBACK_Core_Packets_EthernetFragmentPacket_
15 #define HH_WiBACK_Core_Packets_EthernetFragmentPacket_ 1
16 
17 // Custom includes
19 
21 namespace senf {
22 namespace emu {
23 
25  {
26 # include SENF_FIXED_PARSER()
27  SENF_PARSER_BITFIELD( fragmentNr, 7, unsigned );
32  };
33 
35  : public senf::PacketTypeBase,
36  public senf::PacketTypeMixin<EthernetFragmentPacketType>
37  {
41 
42  using mixin::nextPacketRange;
43  using mixin::initSize;
44  using mixin::init;
45 
46  static void dump(packet p, std::ostream & os);
47  };
48 
50 }}
51 
53 
55 //#include "EthernetFragmentPacket.cci"
56 //#include "EthernetFragmentPacket.ct"
57 //#include "EthernetFragmentPacket.cti"
58 #endif
#define SENF_PARSER_BITFIELD(name, bits, type)
SENF_PACKET_PREVENT_TEMPLATE_INSTANTIATION(AnnotationsPacket)
senf::ConcretePacket< EthernetFragmentPacketType > packet
#define SENF_PARSER_FIELD(name, type)
#define SENF_PARSER_FINALIZE(name)
void dump(std::ostream &os, DirectoryNode &dir=root())
senf::UInt16Parser type_length() const
senf::UIntFieldParser<?,?+7 > fragmentNr() const
senf::FlagParser<?> moreFragment() const
senf::ConcretePacket< EthernetFragmentPacketType > EthernetFragmentPacket
senf::UInt16Parser size() const
senf::PacketTypeMixin< EthernetFragmentPacketType > mixin