2 This file is part of GNUnet
3 (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file transport/plugin_transport_wlan.h
23 * @brief header for transport plugin and the helper for wlan
24 * @author David Brodski
27 #include "gnunet_common.h"
29 typedef unsigned int uint32_t;
30 typedef unsigned short uint16_t;
32 /* Wlan IEEE80211 header default */
33 static const uint8_t u8aIeeeHeader[] =
35 0x08, 0x01, 0x00, 0x00,
36 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
37 0x13, 0x22, 0x33, 0x44, 0x55, 0x66,
38 0x13, 0x22, 0x33, 0x44, 0x55, 0x66,
74 /* this is the template radiotap header we send packets out with */
76 static const uint8_t u8aRadiotapHeader[] =
78 0x00, 0x00, // <-- radiotap version
79 0x19, 0x00, // <- radiotap header length
80 0x6f, 0x08, 0x00, 0x00, // <-- bitmap
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // <-- timestamp
82 0x00, // <-- flags (Offset +0x10)
83 0x6c, // <-- rate (0ffset +0x11)
84 0x71, 0x09, 0xc0, 0x00, // <-- channel
85 0xde, // <-- antsignal
98 uint16_t version GNUNET_PACKED;
101 * radiotap header length
103 uint16_t length GNUNET_PACKED;
108 uint32_t bitmap GNUNET_PACKED;
113 uint64_t timestamp GNUNET_PACKED;
125 // FIXME: unaligned here, is this OK?
129 uint32_t channel GNUNET_PACKED;