00001 // $Id: radiotap.c 1697 2010-08-24 12:38:14Z tho $ 00002 // 00003 // Copyright (C) 2010 00004 // Fraunhofer (FOKUS) 00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY 00006 // Stefan Bund <g0dil@berlios.de> 00007 // 00008 // This program is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 2 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the 00020 // Free Software Foundation, Inc., 00021 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 # include <senf/autoconf.hh> 00024 # 00025 # ifdef BYTEORDER_LITTLE_ENDIAN 00026 # ifndef HAVE_LE16TOH 00027 # define le16toh(x) (x) 00028 # endif 00029 # ifndef HAVE_LE32TOH 00030 # define le32toh(x) (x) 00031 # endif 00032 # else 00033 # if !defined(HAVE_LE16TOH) || !defined(HAVE_LE32TOH) 00034 # include <byteswap.h> 00035 # endif 00036 # ifndef HAVE_LE16TOH 00037 # define le16toh(x) bswap_16(x) 00038 # endif 00039 # ifndef HAVE_LE32TOH 00040 # define le32toh(x) bswap_32(x) 00041 # endif 00042 # endif 00043 # 00044 # include "radiotap/radiotap.c" 00045 00046 00047 // Local Variables: 00048 // mode: c++ 00049 // fill-column: 100 00050 // comment-column: 40 00051 // c-file-style: "senf" 00052 // indent-tabs-mode: nil 00053 // ispell-local-dictionary: "american" 00054 // compile-command: "scons -u test" 00055 // End: