SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
Ethernet
EthernetInterface.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
17
#ifndef HH_SENF_Ext_NetEmu_Ethernet_EthernetInterface_
18
#define HH_SENF_Ext_NetEmu_Ethernet_EthernetInterface_ 1
19
20
// Custom includes
21
#include "
senf/Ext/NetEmu/InterfaceAPIBase.hh
"
22
23
//-/////////////////////////////////////////////////////////////////////////////////////////////////
24
25
namespace
senf
{
26
namespace
emu
{
27
28
class
EthernetInterface
29
:
public
BidirectionalWiredInterface
30
{
31
public
:
32
template
<
class
Output,
class
Input>
33
EthernetInterface
(Output &
output
, Input &
input
);
34
35
protected
:
36
void
init
();
37
38
private
:
39
virtual
std::uint8_t v_linkTypeId()
const
;
40
};
41
42
}}
43
44
//-/////////////////////////////////////////////////////////////////////////////////////////////////
45
//#include "EthernetInterface.cci"
46
//#include "EthernetInterface.ct"
47
#include "
EthernetInterface.cti
"
48
#endif
49
50
51
// Local Variables:
52
// mode: c++
53
// fill-column: 100
54
// comment-column: 40
55
// c-file-style: "senf"
56
// indent-tabs-mode: nil
57
// ispell-local-dictionary: "american"
58
// compile-command: "scons -u test"
59
// End:
senf::emu::EthernetInterface
Definition:
EthernetInterface.hh:28
senf
Definition:
Annotations.hh:27
senf::emu::InterfaceAPIBase< interface::Wired, interface::Bidirectional >
Definition:
InterfaceAPIBase.hh:168
InterfaceAPIBase.hh
InterfaceAPIBase public header.
senf::emu::Transmitter::input
ppi::connector::PassiveInputJack< EthernetPacket > input
Definition:
InterfaceAPI.hh:356
senf::emu::Receiver::output
ppi::connector::ActiveOutputJack< EthernetPacket > output
Definition:
InterfaceAPI.hh:313
senf::emu::EthernetInterface::EthernetInterface
EthernetInterface(Output &output, Input &input)
senf::emu
Definition:
Annotations.hh:28
senf::emu::EthernetInterface::init
void init()
Definition:
EthernetInterface.cc:27
EthernetInterface.cti