SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
examples
80211Analyzer
IperfPacket.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 "
IperfPacket.hh
"
15
16
// Custom includes
17
18
#define prefix_
19
20
prefix_
void
IperfUDPPacketType::dump
(
packet
p, std::ostream & os)
21
{
22
os <<
"Iperf UDP Packet\n"
23
<<
" id: "
<< p->
id
() << std::endl
24
<<
" tv_sec: "
<< p->tv_sec() << std::endl
25
<<
" tv_usec: "
<< p->tv_usec() << std::endl;
26
}
27
28
#undef prefix_
29
30
31
// Local Variables:
32
// mode: c++
33
// fill-column: 100
34
// c-file-style: "senf"
35
// indent-tabs-mode: nil
36
// ispell-local-dictionary: "american"
37
// compile-command: "scons -u test"
38
// comment-column: 40
39
// End:
IperfPacket.hh
IperfUDPPacketType::dump
static void dump(packet p, std::ostream &os)
Definition:
IperfPacket.cc:20
senf::Packet
prefix_
#define prefix_
Definition:
IperfPacket.cc:18
senf::Packet::id
unsigned long id() const