IperfPacket.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_IperfPacket_
15 #define HH_IperfPacket_ 1
16 
17 // Custom includes
18 #include <senf/Packets/Packets.hh>
19 
21 
23 {
24 # include SENF_FIXED_PARSER()
25 
30 };
31 
33  : public senf::PacketTypeBase,
34  public senf::PacketTypeMixin<IperfUDPPacketType>
35 {
39 
40  using mixin::nextPacketRange;
41  using mixin::initSize;
42  using mixin::init;
43 
44  static void dump(packet p, std::ostream & os);
45 };
46 
48 
49 
51 #endif
senf::UInt32Parser tv_usec() const
senf::ConcretePacket< IperfUDPPacketType > IperfUDPPacket
Definition: IperfPacket.hh:47
#define SENF_PARSER_FIELD(name, type)
#define SENF_PARSER_FINALIZE(name)
void dump(std::ostream &os, DirectoryNode &dir=root())
senf::PacketTypeMixin< IperfUDPPacketType > mixin
Definition: IperfPacket.hh:36
IperfUDPPacketParser parser
Definition: IperfPacket.hh:38
senf::ConcretePacket< IperfUDPPacketType > packet
Definition: IperfPacket.hh:37
senf::UInt32Parser tv_sec() const