SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
P2PTunnel
TunnelHeaderPacket.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 "
TunnelHeaderPacket.hh
"
15
16
// Custom includes
17
18
#define prefix_
19
21
SENF_PACKET_INSTANTIATE_TEMPLATE
(
senf::emu::TunnelHeaderPacket
);
22
23
prefix_
void
senf::emu::TunnelHeaderPacketType::dump
(
packet
p, std::ostream & os)
24
{
25
os <<
"TunnelHeader Header: \n"
26
<<
" reserved : "
<< p->reserved() << std::endl
27
<<
" sequence number : "
<< p->sequenceNumber() << std::endl;
28
}
29
31
#undef prefix_
senf::Packet
senf::ConcretePacket
SENF_PACKET_INSTANTIATE_TEMPLATE
SENF_PACKET_INSTANTIATE_TEMPLATE(senf::emu::TunnelHeaderPacket)
senf::emu::TunnelHeaderPacketType::dump
static void dump(packet p, std::ostream &os)
Dump given TunnelHeaderPacket in readable form to given output stream.
Definition:
TunnelHeaderPacket.cc:23
prefix_
#define prefix_
Definition:
TunnelHeaderPacket.cc:18
TunnelHeaderPacket.hh