Configuration.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 
14 #ifndef __CONFIGURATION_HH__
15 #define __CONFIGURATION_HH__
16 
17 // Custom includes
19 #include <senf/Utils/Logger.hh>
20 
22 
24 {
26 
27 public:
28  bool mgenMode;
29  bool iperfMode;
30  bool bindSocket;
32  bool verbose;
33  bool csvMode;
35  bool promisc;
36  float clockDrift;
37 
42  std::string device;
44  bool analyzeTx;
48  std::uint64_t numPackets;
49 
50  Configuration();
51 
52  void help();
53  void version();
54  void enableHighresTimers();
56 
57  void dev(std::string const & d);
58  void monDev(std::string const & d);
59 
60  bool parse(int argc, char const *argv[]);
61 };
62 
64 #endif
senf::ClockService::clock_type duration
config::time_type clock_type
senf::INet4SocketAddress destination
senf::ClockService::clock_type maxWait
senf::INet4SocketAddress logDestination
#define SENF_LOG_CLASS_AREA()
void dev(std::string const &d)
senf::ClockService::clock_type reorderTimeout
std::uint64_t numPackets
senf::ClockService::clock_type reportingInterval
bool parse(int argc, char const *argv[])
senf::INet4SocketAddress source
void enableHighresTimers()
std::string device
void enableRealtimeScheduling()
void monDev(std::string const &d)