radiotap.c
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 <senf/autoconf.hh>
15 #
16 # ifdef BYTEORDER_LITTLE_ENDIAN
17 # ifndef HAVE_LE16TOH
18 # define le16toh(x) (x)
19 # endif
20 # ifndef HAVE_LE32TOH
21 # define le32toh(x) (x)
22 # endif
23 # else
24 # if !defined(HAVE_LE16TOH) || !defined(HAVE_LE32TOH)
25 # include <byteswap.h>
26 # endif
27 # ifndef HAVE_LE16TOH
28 # define le16toh(x) bswap_16(x)
29 # endif
30 # ifndef HAVE_LE32TOH
31 # define le32toh(x) bswap_32(x)
32 # endif
33 # endif
34 #
35 # include "radiotap/radiotap.c"
36 
37 
38 // Local Variables:
39 // mode: c++
40 // fill-column: 100
41 // comment-column: 40
42 // c-file-style: "senf"
43 // indent-tabs-mode: nil
44 // ispell-local-dictionary: "american"
45 // compile-command: "scons -u test"
46 // End: