From 99ca80fc085e26770d25e10dcaa79547220a0d52 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 19 Dec 2011 12:12:47 +0000 Subject: [PATCH] additional network type for WLAN --- src/include/gnunet_ats_service.h | 3 ++- src/transport/plugin_transport_wlan.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index bd55b8c3a..898857af8 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h @@ -36,7 +36,8 @@ enum GNUNET_ATS_Network_Type GNUNET_ATS_NET_UNSPECIFIED = 0, GNUNET_ATS_NET_LOOPBACK = 1, GNUNET_ATS_NET_LAN = 2, - GNUNET_ATS_NET_WAN = 3 + GNUNET_ATS_NET_WAN = 3, + GNUNET_ATS_NET_WLAN = 4, }; /** diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index b741c976e..4c4e9f1ab 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -2691,7 +2691,7 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) 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); + ats[1].value = htonl (GNUNET_ATS_NET_WLAN); #if DEBUG_wlan GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, PLUGIN_LOG_NAME, -- 2.25.1