SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
Ethernet
EthernetInterface.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
17
#include "
EthernetInterface.hh
"
18
19
// Custom includes
20
21
#define prefix_
22
//-/////////////////////////////////////////////////////////////////////////////////////////////////
23
24
//-/////////////////////////////////////////////////////////////////////////////////////////////////
25
// senf::emu::EthernetInterface
26
27
prefix_
void
senf::emu::EthernetInterface::init
()
28
{
29
BidirectionalWiredInterface::init
();
30
}
31
32
prefix_
boost::uint8_t senf::emu::EthernetInterface::v_linkTypeId()
33
const
34
{
35
return
15;
// 802.21 link type for Ethernet
36
}
37
38
//-/////////////////////////////////////////////////////////////////////////////////////////////////
39
#undef prefix_
40
41
42
// Local Variables:
43
// mode: c++
44
// fill-column: 100
45
// comment-column: 40
46
// c-file-style: "senf"
47
// indent-tabs-mode: nil
48
// ispell-local-dictionary: "american"
49
// compile-command: "scons -u test"
50
// End:
senf::emu::InterfaceAPIBase< interface::Wired, interface::Bidirectional >::init
void init()
senf::emu::EthernetInterface::init
void init()
Definition:
EthernetInterface.cc:27
prefix_
#define prefix_
Definition:
EthernetInterface.cc:21
EthernetInterface.hh
EthernetInterface public header.