InternalThroughputTestPacket.cc
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 
15 
16 // Custom includes
18 
19 #define prefix_
20 //-/////////////////////////////////////////////////////////////////////////////////////////////////
21 
23  // Fraunhofer FIT OUI
25 
27 {
28  os << "EMU Internal Throughput Test Packet:\n"
29  << "sessionId " << p->sessionId()
30  << ", seqNo " << p->seqNo()
31  << ", numPacket " << p->numPkts()
32  << ", magic " << p->magic()
33  << ", timestamp " << p->timestamp();
34 }
35 
36 //-/////////////////////////////////////////////////////////////////////////////////////////////////
37 #undef prefix_
static const std::uint32_t OUI_Fraunhofer_FIT
static void dump(packet p, std::ostream &os)
SENF_PACKET_REGISTRY_REGISTER(senf::EtherOUIExtTypes, senf::EtherOUIExtTypes::type(senf::EthOUIExtensionPacketType::OUI_Fraunhofer_FIT, emu::InternalThroughputTestPacketType::extType), emu::InternalThroughputTestPacket)
static key_t type(boost::uint32_t oui, boost::uint16_t extType)