summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.h
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
committerng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
commitd41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch)
tree9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/transport/plugin_transport_wlan.h
parenta0fce305c565c0937d917a92712f15e9c5736260 (diff)
uncrustify as demanded.
Diffstat (limited to 'src/transport/plugin_transport_wlan.h')
-rw-r--r--src/transport/plugin_transport_wlan.h53
1 files changed, 21 insertions, 32 deletions
diff --git a/src/transport/plugin_transport_wlan.h b/src/transport/plugin_transport_wlan.h
index 926e16e6f..cdc3e34ff 100644
--- a/src/transport/plugin_transport_wlan.h
+++ b/src/transport/plugin_transport_wlan.h
@@ -1,19 +1,19 @@
/*
- This file is part of GNUnet
- Copyright (C) 2010, 2011 GNUnet e.V.
+ This file is part of GNUnet
+ Copyright (C) 2010, 2011 GNUnet e.V.
- GNUnet is free software: you can redistribute it and/or modify it
- under the terms of the GNU Affero General Public License as published
- by the Free Software Foundation, either version 3 of the License,
- or (at your option) any later version.
+ GNUnet is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License,
+ or (at your option) any later version.
- GNUnet is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Affero General Public License for more details.
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Affero General Public License for more details.
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
*/
@@ -34,7 +34,7 @@
*/
#ifdef MINGW
#define MAC_ADDR_SIZE 8
- typedef uint8_t u_int8_t;
+typedef uint8_t u_int8_t;
#else
#define MAC_ADDR_SIZE 6
#endif
@@ -63,16 +63,14 @@ GNUNET_NETWORK_STRUCT_BEGIN
/**
* A MAC Address.
*/
-struct GNUNET_TRANSPORT_WLAN_MacAddress
-{
+struct GNUNET_TRANSPORT_WLAN_MacAddress {
uint8_t mac[MAC_ADDR_SIZE];
};
/**
* Format of a WLAN Control Message.
*/
-struct GNUNET_TRANSPORT_WLAN_HelperControlMessage
-{
+struct GNUNET_TRANSPORT_WLAN_HelperControlMessage {
/**
* Message header. Type is
* GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL
@@ -88,9 +86,7 @@ struct GNUNET_TRANSPORT_WLAN_HelperControlMessage
/**
* generic definitions for IEEE 802.3 frames
*/
-struct GNUNET_TRANSPORT_WLAN_Ieee8023Frame
-{
-
+struct GNUNET_TRANSPORT_WLAN_Ieee8023Frame {
/**
* Address 1: destination address in ad-hoc mode or AP, BSSID if station,
*/
@@ -105,15 +101,13 @@ struct GNUNET_TRANSPORT_WLAN_Ieee8023Frame
* Packet type ID.
*/
uint16_t type;
-
};
/**
* generic definitions for IEEE 802.11 frames
*/
-struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame
-{
+struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame {
/**
* 802.11 Frame Control field. A bitmask. The overall field is a
* 16-bit mask of the respecitve fields. The lowest two bits should
@@ -157,7 +151,6 @@ struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame
u_int8_t llc[4];
/* payload */
-
} GNUNET_PACKED;
@@ -166,9 +159,7 @@ struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame
* Message from the plugin to the WLAN helper: send the given message with the
* given connection parameters.
*/
-struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage
-{
-
+struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage {
/**
* Type is 'GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER'.
*/
@@ -207,9 +198,7 @@ struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage
/**
* struct to represent infos gathered form the radiotap fields, see RadiotapHeader for more Infos
*/
-struct GNUNET_TRANSPORT_WLAN_RadiotapReceiveMessage
-{
-
+struct GNUNET_TRANSPORT_WLAN_RadiotapReceiveMessage {
/**
* Type is 'GNUNET_MESSAGE_TYPE_WLAN_DATA_FROM_HELPER'.
*/
@@ -273,7 +262,7 @@ GNUNET_NETWORK_STRUCT_END
* GNUnet bssid
*/
static const struct GNUNET_TRANSPORT_WLAN_MacAddress mac_bssid_gnunet = {
- {0x13, 0x22, 0x33, 0x44, 0x55, 0x66}
+ { 0x13, 0x22, 0x33, 0x44, 0x55, 0x66 }
};
@@ -281,7 +270,7 @@ static const struct GNUNET_TRANSPORT_WLAN_MacAddress mac_bssid_gnunet = {
* Broadcast MAC
*/
static const struct GNUNET_TRANSPORT_WLAN_MacAddress bc_all_mac = {
- {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
+ { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
};
#endif