config.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 HH_SENF_Ext_NetEmu_config_
15 #define HH_SENF_Ext_NetEmu_config_ 1
16 
17 // Custom includes
18 
19 //-/////////////////////////////////////////////////////////////////////////////////////////////////
20 
21 #include <senf/autoconf.hh>
22 
23 #ifdef HAVE_NETLINK_VERSION_H
24 # include <netlink/version.h>
25 # ifndef LIBNL_VER_NUM
26 # define LIBNL_VER_MAJ 2
27 # define LIBNL_VER_MIN 0
28 # define LIBNL_VER(maj,min) ((maj) << 8 | (min))
29 # define LIBNL_VER_NUM LIBNL_VER(LIBNL_VER_MAJ, LIBNL_VER_MIN)
30 # endif
31 #else
32 # define LIBNL_STRING "libnl 1.0"
33 # define LIBNL_VERSION "1.0"
34 # define LIBNL_VER_MAJ 1
35 # define LIBNL_VER_MIN 0
36 # define LIBNL_VER(maj,min) ((maj) << 8 | (min))
37 # define LIBNL_VER_NUM LIBNL_VER(LIBNL_VER_MAJ, LIBNL_VER_MIN)
38 #endif
39 
40 #define SENF_EMU_MAXMTU 4096u
41 
42 //-/////////////////////////////////////////////////////////////////////////////////////////////////
43 #endif
44 
45 
46 // Local Variables:
47 // mode: c++
48 // fill-column: 100
49 // comment-column: 40
50 // c-file-style: "senf"
51 // indent-tabs-mode: nil
52 // ispell-local-dictionary: "american"
53 // compile-command: "scons -u all_tests"
54 // End: