diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-28 16:19:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-28 16:19:04 +0000 |
commit | 0e90e90f510428a7d3ed92add2cb4bf93595a6cf (patch) | |
tree | c24132b58679740328cc98e128602fc85f01d5c5 /src/transport/plugin_transport_wlan.h | |
parent | 2f4b20ea2c334ce412dbc1fe29253cc110765205 (diff) | |
download | gnunet-0e90e90f510428a7d3ed92add2cb4bf93595a6cf.tar.gz gnunet-0e90e90f510428a7d3ed92add2cb4bf93595a6cf.zip |
-some code cleanup
Diffstat (limited to 'src/transport/plugin_transport_wlan.h')
-rw-r--r-- | src/transport/plugin_transport_wlan.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_wlan.h b/src/transport/plugin_transport_wlan.h index b0b8b966a..9e1bc4f22 100644 --- a/src/transport/plugin_transport_wlan.h +++ b/src/transport/plugin_transport_wlan.h | |||
@@ -34,38 +34,37 @@ | |||
34 | */ | 34 | */ |
35 | #define MAC_ADDR_SIZE 6 | 35 | #define MAC_ADDR_SIZE 6 |
36 | 36 | ||
37 | GNUNET_NETWORK_STRUCT_BEGIN | ||
37 | /** | 38 | /** |
38 | * A MAC Address. | 39 | * A MAC Address. |
39 | */ | 40 | */ |
40 | struct MacAddress | 41 | struct GNUNET_TRANSPORT_WLAN_MacAddress |
41 | { | 42 | { |
42 | uint8_t mac[MAC_ADDR_SIZE]; | 43 | uint8_t mac[MAC_ADDR_SIZE]; |
43 | }; | 44 | }; |
44 | 45 | ||
45 | |||
46 | GNUNET_NETWORK_STRUCT_BEGIN | ||
47 | |||
48 | /** | 46 | /** |
49 | * Format of a WLAN Control Message. | 47 | * Format of a WLAN Control Message. |
50 | */ | 48 | */ |
51 | struct GNUNET_TRANSPORT_WLAN_HelperControlMessage | 49 | struct GNUNET_TRANSPORT_WLAN_HelperControlMessage |
52 | { | 50 | { |
53 | /** | 51 | /** |
54 | * Message header. FIXME: type? | 52 | * Message header. Type is |
53 | * GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL | ||
55 | */ | 54 | */ |
56 | struct GNUNET_MessageHeader hdr; | 55 | struct GNUNET_MessageHeader hdr; |
57 | 56 | ||
58 | /** | 57 | /** |
59 | * MAC Address. FIXME: of what? | 58 | * MAC Address of the local WLAN interface. |
60 | */ | 59 | */ |
61 | struct MacAddress mac; | 60 | struct GNUNET_TRANSPORT_WLAN_MacAddress mac; |
62 | }; | 61 | }; |
63 | GNUNET_NETWORK_STRUCT_END | 62 | GNUNET_NETWORK_STRUCT_END |
64 | 63 | ||
65 | /** | 64 | /** |
66 | * GNUnet bssid | 65 | * GNUnet bssid |
67 | */ | 66 | */ |
68 | static const struct MacAddress mac_bssid_gnunet = { | 67 | static const struct GNUNET_TRANSPORT_WLAN_MacAddress mac_bssid_gnunet = { |
69 | {0x13, 0x22, 0x33, 0x44, 0x55, 0x66} | 68 | {0x13, 0x22, 0x33, 0x44, 0x55, 0x66} |
70 | }; | 69 | }; |
71 | 70 | ||
@@ -73,7 +72,7 @@ static const struct MacAddress mac_bssid_gnunet = { | |||
73 | /** | 72 | /** |
74 | * Broadcast MAC | 73 | * Broadcast MAC |
75 | */ | 74 | */ |
76 | static const struct MacAddress bc_all_mac = { | 75 | static const struct GNUNET_TRANSPORT_WLAN_MacAddress bc_all_mac = { |
77 | {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} | 76 | {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} |
78 | }; | 77 | }; |
79 | 78 | ||