diff options
Diffstat (limited to 'src/transport/plugin_transport_wlan.h')
-rw-r--r-- | src/transport/plugin_transport_wlan.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_wlan.h b/src/transport/plugin_transport_wlan.h index 3c206a496..dd770e53e 100644 --- a/src/transport/plugin_transport_wlan.h +++ b/src/transport/plugin_transport_wlan.h | |||
@@ -32,6 +32,20 @@ | |||
32 | typedef unsigned int uint32_t; | 32 | typedef unsigned int uint32_t; |
33 | typedef unsigned short uint16_t; | 33 | typedef unsigned short uint16_t; |
34 | 34 | ||
35 | |||
36 | struct MacAddress | ||
37 | { | ||
38 | char mac[6]; | ||
39 | }; | ||
40 | |||
41 | struct Wlan_Helper_Control_Message | ||
42 | { | ||
43 | struct GNUNET_MessageHeader hdr; | ||
44 | struct MacAddress mac ; | ||
45 | }; | ||
46 | |||
47 | |||
48 | |||
35 | /* Wlan IEEE80211 header default */ | 49 | /* Wlan IEEE80211 header default */ |
36 | //Informations (in German) http://www.umtslink.at/content/WLAN_macheader-196.html | 50 | //Informations (in German) http://www.umtslink.at/content/WLAN_macheader-196.html |
37 | static const uint8_t u8aIeeeHeader[] = | 51 | static const uint8_t u8aIeeeHeader[] = |
@@ -74,18 +88,18 @@ struct IeeeHeader | |||
74 | /** | 88 | /** |
75 | * first mac byte 1 | 89 | * first mac byte 1 |
76 | */ | 90 | */ |
77 | uint8_t mac1[6]; | 91 | struct MacAddress mac1; |
78 | 92 | ||
79 | 93 | ||
80 | /** | 94 | /** |
81 | * second mac | 95 | * second mac |
82 | */ | 96 | */ |
83 | uint8_t mac2[6]; | 97 | struct MacAddress mac2; |
84 | 98 | ||
85 | /** | 99 | /** |
86 | * third mac | 100 | * third mac |
87 | */ | 101 | */ |
88 | uint8_t mac3[6]; | 102 | struct MacAddress mac3; |
89 | 103 | ||
90 | /** | 104 | /** |
91 | * Wlan Sequence Control | 105 | * Wlan Sequence Control |