projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- implementation for mantis 0002485
[oweals/gnunet.git]
/
src
/
transport
/
plugin_transport_wlan.c
diff --git
a/src/transport/plugin_transport_wlan.c
b/src/transport/plugin_transport_wlan.c
index bda17cb9014ef50b6b0985b25c68dbc38be09810..c2565a4a8fb9f198de1c3343266d03008b54525a 100644
(file)
--- a/
src/transport/plugin_transport_wlan.c
+++ b/
src/transport/plugin_transport_wlan.c
@@
-152,6
+152,11
@@
struct PendingMessage
*/
struct Session
{
*/
struct Session
{
+ /**
+ * To whom are we talking to (set to our identity
+ * if we are still waiting for the welcome message)
+ */
+ struct GNUNET_PeerIdentity target;
/**
* API requirement (must be first).
/**
* API requirement (must be first).
@@
-185,12
+190,6
@@
struct Session
*/
struct PendingMessage *pending_message_tail;
*/
struct PendingMessage *pending_message_tail;
- /**
- * To whom are we talking to (set to our identity
- * if we are still waiting for the welcome message)
- */
- struct GNUNET_PeerIdentity target;
-
/**
* When should this session time out?
*/
/**
* When should this session time out?
*/
@@
-1081,7
+1080,7
@@
wlan_plugin_send (void *cls,
* @param client pointer to the session this message belongs to
* @param hdr start of the message
*/
* @param client pointer to the session this message belongs to
* @param hdr start of the message
*/
-static
void
+static
int
process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
{
struct Plugin *plugin = cls;
process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
{
struct Plugin *plugin = cls;
@@
-1245,6
+1244,7
@@
process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
(mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress));
break;
}
(mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress));
break;
}
+ return GNUNET_OK;
}
#undef NUM_ATS
}
#undef NUM_ATS
@@
-1256,7
+1256,7
@@
process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
* @param client client that send the data (not used)
* @param hdr header of the GNUNET_MessageHeader
*/
* @param client client that send the data (not used)
* @param hdr header of the GNUNET_MessageHeader
*/
-static
void
+static
int
handle_helper_message (void *cls, void *client,
const struct GNUNET_MessageHeader *hdr)
{
handle_helper_message (void *cls, void *client,
const struct GNUNET_MessageHeader *hdr)
{
@@
-1358,6
+1358,7
@@
handle_helper_message (void *cls, void *client,
ntohs (hdr->type), ntohs (hdr->size));
break;
}
ntohs (hdr->type), ntohs (hdr->size));
break;
}
+ return GNUNET_OK;
}
}