gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18576 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r18576 - gnunet/src/transport
Date: Tue, 13 Dec 2011 16:19:16 +0100

Author: wachs
Date: 2011-12-13 16:19:16 +0100 (Tue, 13 Dec 2011)
New Revision: 18576

Modified:
   gnunet/src/transport/plugin_transport_wlan.c
Log:
address type in WLAN


Modified: gnunet/src/transport/plugin_transport_wlan.c
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.c        2011-12-13 15:15:12 UTC 
(rev 18575)
+++ gnunet/src/transport/plugin_transport_wlan.c        2011-12-13 15:19:16 UTC 
(rev 18576)
@@ -2686,12 +2686,13 @@
   GNUNET_assert (cls != NULL);
   struct Session *session = (struct Session *) client;
   struct Plugin *plugin = (struct Plugin *) cls;
+  struct GNUNET_ATS_Information ats[2];
 
-  struct GNUNET_ATS_Information distance;
+  ats[0].type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
+  ats[0].value = htonl (1);
+  ats[1].type = htonl (GNUNET_ATS_NETWORK_TYPE);
+  ats[1].value = htonl (GNUNET_ATS_NET_LAN);
 
-  distance.type = htonl (GNUNET_ATS_QUALITY_NET_DISTANCE);
-  distance.value = htonl (1);
-
 #if DEBUG_wlan
   GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, PLUGIN_LOG_NAME,
                    "Calling plugin->env->receive for session %p; %s; size: 
%u\n",
@@ -2702,7 +2703,7 @@
 #endif
 
   plugin->env->receive (plugin->env->cls, &(session->target), hdr,
-                        (const struct GNUNET_ATS_Information *) &distance, 1,
+                        (const struct GNUNET_ATS_Information *) &ats, 2,
                         session, (const char *) &session->mac->addr,
                         sizeof (session->mac->addr));
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]