diff options
author | David Brodski <david@brodski.eu> | 2010-09-23 11:22:44 +0000 |
---|---|---|
committer | David Brodski <david@brodski.eu> | 2010-09-23 11:22:44 +0000 |
commit | 3a6ea963dcdb17dd1ef9088d628cb602b437ac1d (patch) | |
tree | cbf22065e9ac5a3569a828b439713b0be9fa910a /src/transport/gnunet-transport-wlan-helper.c | |
parent | 2ab3c347974b33e0715ce1fad0f42d4846da3aee (diff) | |
download | gnunet-3a6ea963dcdb17dd1ef9088d628cb602b437ac1d.tar.gz gnunet-3a6ea963dcdb17dd1ef9088d628cb602b437ac1d.zip |
Queues to send data should work now, fragmentation code is not finished
Diffstat (limited to 'src/transport/gnunet-transport-wlan-helper.c')
-rw-r--r-- | src/transport/gnunet-transport-wlan-helper.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c index 19ea8de79..3ea8a74f5 100644 --- a/src/transport/gnunet-transport-wlan-helper.c +++ b/src/transport/gnunet-transport-wlan-helper.c | |||
@@ -28,6 +28,7 @@ | |||
28 | * gnunet | 28 | * gnunet |
29 | */ | 29 | */ |
30 | #include "gnunet-transport-wlan-helper.h" | 30 | #include "gnunet-transport-wlan-helper.h" |
31 | #include "plugin_transport_wlan.h" | ||
31 | #include "ieee80211_radiotap.h" | 32 | #include "ieee80211_radiotap.h" |
32 | 33 | ||
33 | #include <pcap.h> | 34 | #include <pcap.h> |
@@ -57,31 +58,6 @@ static const u8 u8aRatesToUse[] = { | |||
57 | 1*2 | 58 | 1*2 |
58 | }; | 59 | }; |
59 | 60 | ||
60 | /* Penumbra IEEE80211 header */ | ||
61 | static const u8 u8aIeeeHeader[] = { | ||
62 | 0x08, 0x01, 0x00, 0x00, | ||
63 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | ||
64 | 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, | ||
65 | 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, | ||
66 | 0x10, 0x86, | ||
67 | }; | ||
68 | |||
69 | /* this is the template radiotap header we send packets out with */ | ||
70 | |||
71 | static const u8 u8aRadiotapHeader[] = { | ||
72 | |||
73 | 0x00, 0x00, // <-- radiotap version | ||
74 | 0x19, 0x00, // <- radiotap header length | ||
75 | 0x6f, 0x08, 0x00, 0x00, // <-- bitmap | ||
76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // <-- timestamp | ||
77 | 0x00, // <-- flags (Offset +0x10) | ||
78 | 0x6c, // <-- rate (0ffset +0x11) | ||
79 | 0x71, 0x09, 0xc0, 0x00, // <-- channel | ||
80 | 0xde, // <-- antsignal | ||
81 | 0x00, // <-- antnoise | ||
82 | 0x01, // <-- antenna | ||
83 | |||
84 | }; | ||
85 | #define OFFSET_FLAGS 0x10 | 61 | #define OFFSET_FLAGS 0x10 |
86 | #define OFFSET_RATE 0x11 | 62 | #define OFFSET_RATE 0x11 |
87 | 63 | ||