aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-06 08:55:52 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-06 08:55:52 +0000
commit5f930e289a0ef6dbe1fb3d2066b15170c8698e30 (patch)
tree172cde5c8dd578258949344708b27156bf25fadf /src/transport/plugin_transport_wlan.c
parent64e50b6dfbf852eb19d1b5d55ca8709422199a44 (diff)
downloadgnunet-5f930e289a0ef6dbe1fb3d2066b15170c8698e30.tar.gz
gnunet-5f930e289a0ef6dbe1fb3d2066b15170c8698e30.zip
nicer
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 7325a5b52..44e5dbd5a 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -784,7 +784,7 @@ set_next_beacon_time(struct Plugin * const plugin)
784} 784}
785 785
786//TODO doxigen 786//TODO doxigen
787struct GNUNET_TIME_Relative 787static struct GNUNET_TIME_Relative
788get_next_frag_timeout(struct FragmentMessage * fm) 788get_next_frag_timeout(struct FragmentMessage * fm)
789{ 789{
790 return GNUNET_TIME_relative_min(GNUNET_TIME_absolute_get_remaining( 790 return GNUNET_TIME_relative_min(GNUNET_TIME_absolute_get_remaining(
@@ -796,7 +796,7 @@ get_next_frag_timeout(struct FragmentMessage * fm)
796 * Function to get the timeout value for acks for this session 796 * Function to get the timeout value for acks for this session
797 */ 797 */
798 798
799struct GNUNET_TIME_Relative 799static struct GNUNET_TIME_Relative
800get_ack_timeout(struct FragmentMessage * fm) 800get_ack_timeout(struct FragmentMessage * fm)
801{ 801{
802 return FRAGMENT_TIMEOUT; 802 return FRAGMENT_TIMEOUT;
@@ -1111,7 +1111,7 @@ set_next_message_fragment_pos(struct FragmentMessage * fm)
1111 1111
1112} 1112}
1113 1113
1114int 1114static int
1115getRadiotapHeader(struct Plugin * plugin, struct Session * session, 1115getRadiotapHeader(struct Plugin * plugin, struct Session * session,
1116 struct Radiotap_Send * header) 1116 struct Radiotap_Send * header)
1117{ 1117{
@@ -1140,7 +1140,7 @@ getRadiotapHeader(struct Plugin * plugin, struct Session * session,
1140 * @param plugin pointer to the plugin struct 1140 * @param plugin pointer to the plugin struct
1141 * @return GNUNET_YES if there was no error 1141 * @return GNUNET_YES if there was no error
1142 */ 1142 */
1143int 1143static int
1144getWlanHeader(struct ieee80211_frame * Header, 1144getWlanHeader(struct ieee80211_frame * Header,
1145 const struct MacAddress * to_mac_addr, 1145 const struct MacAddress * to_mac_addr,
1146 struct Plugin * plugin) 1146 struct Plugin * plugin)
@@ -1194,12 +1194,12 @@ send_hello_beacon(struct Plugin * plugin)
1194 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Sending hello beacon\n"); 1194 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Sending hello beacon\n");
1195#endif 1195#endif
1196 1196
1197 uint16_t size = 0; 1197 uint16_t size;
1198 ssize_t bytes; 1198 ssize_t bytes;
1199 struct GNUNET_MessageHeader * msgheader = NULL; 1199 struct GNUNET_MessageHeader * msgheader;
1200 struct ieee80211_frame * ieeewlanheader = NULL; 1200 struct ieee80211_frame * ieeewlanheader;
1201 struct Radiotap_Send * radioHeader = NULL; 1201 struct Radiotap_Send * radioHeader;
1202 struct GNUNET_MessageHeader * msgheader2 = NULL; 1202 struct GNUNET_MessageHeader * msgheader2;
1203 1203
1204 GNUNET_assert(sizeof(struct WlanHeader) + GNUNET_HELLO_size( 1204 GNUNET_assert(sizeof(struct WlanHeader) + GNUNET_HELLO_size(
1205 *(plugin->env->our_hello)) <= WLAN_MTU); 1205 *(plugin->env->our_hello)) <= WLAN_MTU);