SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
examples
Analyzer
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
14
#include "
InternalThroughputTestPacket.hh
"
15
16
// Custom includes
17
#include <
senf/Packets/DefaultBundle/Registries.hh
>
18
19
#define prefix_
20
//-/////////////////////////////////////////////////////////////////////////////////////////////////
21
22
SENF_PACKET_REGISTRY_REGISTER
(
senf::EtherOUIExtTypes
,
23
// Fraunhofer FIT OUI
24
senf::EtherOUIExtTypes::type
(
senf::EthOUIExtensionPacketType::OUI_Fraunhofer_FIT
,
emu::InternalThroughputTestPacketType::extType
),
emu::InternalThroughputTestPacket
);
25
26
prefix_
void
emu::InternalThroughputTestPacketType::dump
(
packet
p, std::ostream & os)
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_
emu::InternalThroughputTestPacketType::extType
static const std::uint16_t extType
Definition:
InternalThroughputTestPacket.hh:49
senf::EthOUIExtensionPacketType::OUI_Fraunhofer_FIT
static const std::uint32_t OUI_Fraunhofer_FIT
Registries.hh
emu::InternalThroughputTestPacketType::dump
static void dump(packet p, std::ostream &os)
Definition:
InternalThroughputTestPacket.cc:26
SENF_PACKET_REGISTRY_REGISTER
SENF_PACKET_REGISTRY_REGISTER(senf::EtherOUIExtTypes, senf::EtherOUIExtTypes::type(senf::EthOUIExtensionPacketType::OUI_Fraunhofer_FIT, emu::InternalThroughputTestPacketType::extType), emu::InternalThroughputTestPacket)
senf::Packet
senf::ConcretePacket
senf::EtherOUIExtTypes
prefix_
#define prefix_
Definition:
InternalThroughputTestPacket.cc:19
InternalThroughputTestPacket.hh
senf::EtherOUIExtTypes::type
static key_t type(boost::uint32_t oui, boost::uint16_t extType)